Examveda
Examveda

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

C. 0

D. 1

Answer: Option B


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings