VnV AT : M3(Java) - Day 2
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
- Q1Which is the special method that is used to initialize a class object ?abstract methodConstructoroverloaded methodstatic method30s
- Q2Which of the following statement is true about an Interface?Interface can not be nested inside another interface.Interface can not extend one or more other interface.Interface cannot implement a class.Methods inside Interface can be static, final, native or strictfp.30s
- Q3What is the output of the following code snippet ? class A { int x = 10; public void assign(int x) { x = x; System.out.println(this.x); } public static void main(String[] args) { new A().assign(100); } }10010compile time error030s
- Q4Which of the following statement declares a constant field in Java?const int x = 10;static int x = 10;final static int x = 10;volatile int x = 10;30s
- Q5Which of the statement is false about an abstract class?An abstract class can be extended.An abstract class cannot have normal method.An abstract class cannot be instantiated.An abstract class is a class that contains one or more abstract methods.30s