JAVA Quiz

/5

Misc

1 / 5

What is the valid function to find the length of the string?

2 / 5

What is the valid variable name to store a string ?

3 / 5

What will be the output of below code:

class abc

{

public static void main(String args[])

{

if(args.length>0)

System.out.println(args.length);

}

}

4 / 5

What is the default value of a character?

5 / 5

What will be the output of below code:

class output

{

public static void main(String args[])

{

StringBuffer s1 = new StringBuffer("Quiz");

StringBuffer s2 = s1.reverse();

System.out.println(s2);

}

}

Your score is

The average score is 45%

0%

Exit