You are not logged in.

#1 2015-06-08 08:45:13

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

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.

2015-06-08 08:45:13

Advertisement
Ads By Google

Re: Static Initializers:



\n

Board footer