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 the one correct answer.
Main()
cannot be declared final.f()
cannot be declared static.(c)
A class can be declared abstract even if it does not declare any abstract methods.
The variable k cannot be declared synchronized.
Only methods and blocks can be synchronized.