
VnV AT : M3(Java) - Day 3
Quiz by neelimap
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
5 questions
Show answers
- Q1Is it possible in Java to create arrays of length zero ?Yes, you can create arrays of any type with length zero.No, it is not possible to create arrays of length zero in Java.30s
- Q2What is an immutable object?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.30s
- Q3What is the base class for all Exception ?java.lang.RuntimeExceptionjava.lang.Exceptionjava.lang.Throwablejava.lang.Error30s
- Q4What 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"); } } }It will not compiletry catch finallytry finallycatch finally30s
- Q5What 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);truefalse30s