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(){}

Select 1 option

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.
F. This code has no errors.

Q&A Set: 

Search the Web

Custom Search

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