Multiple Choice Question

Quiz Guidelines



What, if anything, is wrong with the following code?

abstract class TestClass{
transient int j;
synchronized int k;
final void TestClass(){}
static void f(){
k = j++;

Select 2 options

A. The class TestClass cannot be declared abstract.
B. The variable j cannot be declared transient.
C. The variable k cannot be declared synchronized.
D. The constructor TestClass( ) cannot be declared final.
E. The method f( ) cannot be declared static.

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within!!!