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
Which is the special method that is used to initialize a class object ?
30
abstract method
Constructor
overloaded method
static method
Q 2/5
Score 0
Which of the following statement is true about an Interface?
30
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.
5 questions
Q.
Which is the special method that is used to initialize a class object ?
1
30 sec
Q.
Which of the following statement is true about an Interface?
2
30 sec
Q.
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);
}
}
3
30 sec
Q.
Which of the following statement declares a constant field in Java?
4
30 sec
Q.
Which of the statement is false about an abstract class?