What, if anything, is wrong with the following code?
abstract class Main{ transient int j; synchronized int k; final void Main (){} static void f (){} }
Select 1 option
Correct Option is : C
For A.
Any class can be declared abstract.
For C.
Variables cannot be declared synchronized. Only methods can be declared synchronized.
For D.
It is not a constructor, it is a simple method. Notice void return type.