placeholder image to represent content

VnV AT : M3(Java) - Day 2

Quiz by neelimap

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
5 questions
Show answers
  • Q1
    Which is the special method that is used to initialize a class object ?
    abstract method
    Constructor
    overloaded method
    static method
    30s
  • Q2
    Which 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
  • Q3
    What 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); } }
    100
    10
    compile time error
    0
    30s
  • Q4
    Which 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
  • Q5
    Which 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

Teachers give this quiz to your class