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 Telegram Group https://rebrand.ly/lex-telegram-236dee