Vidyalelo
Java Programming · Q52

Strings

Programming · Java Programming · question 52

Q52

What will be the output of the following Java code? class output public static void main(String args[]) String c = "Hello i love java"; boolean var; var = c.startsWith("hello"); System.out.println(var);

A.
true
B.
false
Answer
C.
0
D.
1

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board