Logo

Java Questions Set 138:

Quiz Mode

Which of the following is not a memory classification in Java?

1
2
3
4

Solution:

What is the name of the method used to start a thread's execution?

1
2
3
4

Solution:

Which keyword is used in the subclass to call the constructor of the subclass?

1
2
3
4

Solution:

Which access specifier must be used for a class so that it can be inherited by another subclass?

1
2
3
4

Solution:

 To allocate microprocessor time in between the threads of the same priority, thread scheduler follows which algorithm?

1
2
3
4

Solution:

Which of the following statements is/are true regarding Java?

1
2
3
4

Solution:

Which constant value will change when the button at the end of the scroll bar is clicked to increase its value?

1
2
3
4

Solution:

class Out 

{

public static void main(String args[]) 

int a = 10;

int b = 20;

int c;

int d;

c = ++b;

d = a++;

c++;

b++;

++a;

System.out.println(a + " " + b + " " + c);

}

1
2
3
4

Solution:

What is the purpose of the 'break' statement in programming?

1
2
3
4

Solution: