Home | News | Articles | Certifications | Quizzes | Practice Tests | Books | Training | FAQ | Freebies
GoCertify.com logo
TOOLBOX

Certification Watch
Get the latest certification news by email!
First name:

Last name:

*Your email address:

* Enter this security code:

Our Other Sites
GoExam
Certification practice tests with free demos to download.

GoTraining
Get Training on what you need.

CertificationBooks
Find the certification book you're looking for.

SearchCertify
links, links and more certification links!

Cheap Web Tricks
No cost or low cost tools for the frugal Webmaster

Question 1:

What will happen when you attempt to compile and run the following code?

int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
    System.out.println("We are equal " + Output);
}
else
{
    System.out.println("Not equal! " + Output);
}	  

A. Compilation error, attempting to perform binary comparison on logical data type.
B. Compilation and output of "We are equal 10".
C. Compilation and output of "Not equal! 20".
D. Compilation and output of "Not equal! 10".

View the explanation

next
Get Certified





 
(c) copyright 1998-2008 Anventure.  All Rights Reserved.
contact us | advertise | privacy policy Clicky Web Analytics