Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/5
Score 0
Is it possible in Java to create arrays of length zero ?
30
Yes, you can create arrays of any type with length zero.
No, it is not possible to create arrays of length zero in Java.
Q 2/5
Score 0
What is an immutable object?
30
an object which cannot be cloned.
an object which cannot be casted to another type.
an object whose state cannot be changed after it is created.
an object whose state can be changed after it is created.
5 questions
Q.
Is it possible in Java to create arrays of length zero ?
1
30 sec
Q.
What is an immutable object?
2
30 sec
Q.
What is the base class for all Exception ?
3
30 sec
Q.
What will be the Output of the given code ?
public class test
{
static void method(){}
public static void main(String []args) throws Exception
{
try
{
method();
System.out.println("try");
}
catch(Exception e)
{
System.out.println("catch");
}
finally
{
System.out.println("finally");
}
}
}
4
30 sec
Q.
What is the output of the following code snippet ?
Pattern p = Pattern.compile(".s");
Matcher m = p.matcher("as");
boolean b = m.matches();
System.out.print(b);