-
A
helloworld
5
l
false
-
B
hello world
5
o
false
String in java Introduction in String
⚠ Report ✓ Question Verified Copy Link
// Give the output of the following program fragment: //What do the following functions return for: class MCQClass { public static void main(String args[]){ String x = "hello"; String y = "world"; System.out.println(x + y); System.out.println(x.length()); System.out.println(x.charAt(3)); System.out.println(x.equals(y)); } }
Learn More MCQ Questions from String in java Introduction in String