Exam Permalink:
https://www.jobilize.com/java-certification-questions
Question Permalink:
https://www.jobilize.com/comparing-null-to-string
Question 55 / 297:  What is the result of compiling and running the following code?
public static void main(String[] args) {

String s1 = null;

String s2 = null;

if (s1 == s2)

System.out.print("A");

if (s1.equals(s2))

System.out.print("B");

}

A  "AB" will be printed
B  "A" will be printed followed be a NullPointerException thrown
C  "B" will be printed
D  No output is produced
<< First < Previous Next > Last >>

Questions & Answers

what is memory?
Hausa Reply
memory is billions of consecutive data storage cell where each of the cell has its own particular address of identification.
Shariful
what are the major difference in the external environment of an office automation system and that of an embedded systems
juma Reply
What is software engineering
Zohaib Reply
what is salary of a software engineer
Akash Reply
understand wllhi 😭am language somali bro 😇😣😣😣
what is agile
Qais Reply
what do you want
help
Billy
how to U download
Adam Reply
hi is there any mobile spy app best you know?
muddy Reply
what is software engineer
Soumen Reply
Who make the software he is the software engineer.
thando
i don't
Al
mobile spy android need it any one help me
muddy
🤔
I want to create a game
Rohith Reply
Requirements to create game
Rohith
yes i also
GURPREET
want to knoe about the reqirements
GURPREET
Yes
Rohith
what are software evolution processes
Software Evolution is a term which refers to the process of developing software initially, then timely updating it for various reasons, i.e., to add new features or to remove obsolete functionalities etc. ... If the proposed changes are accepted, a new release of the software system is planned
Fenkil
basic things of software engineer
Saroj Reply
Which languages need for web development? And how I can learn it? pls help me
Zhamshid Reply
basic things of software engineer
Saroj
hm
Dhruv
I also want to know basic training for software engineering
Dhruv
I want to found an internet company
Sanay Reply
First learn english grammar correctly. 🙏
Eternal
Exam Home Page
https://www.jobilize.com/java-certification-questions

Oracle Certified Professional Java Programmer

Author:

Access: Public Instant Grading

Ask
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/java-certification-questions" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>