You are not logged in.
Pages:: 1
#1 2015-06-08 08:45:13
Static Initializers:
Question:
Which of the following is false for Static Initializers?
Option A):
The code in a static initializer block is executed by the virtual machine when the class is loaded
Option B):
They need to be referred from outside the class definition
Option C):
A static initializer block resembles a method with a name, arguments, and return type
Option D):
A static initializer block resembles a method with a name, arguments, and return type And They need to be referred from outside the class definition
Correct Answer is Option D):
A static initializer block resembles a method with a name, arguments, and return type And They need to be referred from outside the class definition
You cannot discover the new oceans unless you have the courage to lose the sight of the shore.
Offline
2015-06-08 08:45:13
- Advertisement
- Ads By Google
Re: Static Initializers:
\n
Pages:: 1