Qtr No. 213, New Town Yehlanka Indore 454775
Which of the following is the part of the output when the below code gets executed? (Choose exactly three correct options)
//Assume that code is written inside a main method with proper class declaration
var s = "Hello";
var t = new String(s);
if ("Hello".equals(s)) System.out.println("one");
if (t == s) System.out.println("two");
if (t.intern() == s) System.out.println("three");
if ("Hello" == s) System.out.println("four");
if ("Hello".intern() == t) System.out.println("five");
one
two
three
four
To get all Infosys Certified L1 Junior Java Programmer Exam questions Join Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in