Constructors have to be called before the main function

- True
- False


Discussion Board

yes , it is possible but upto java 6, from java 6 onwords controller will search first main method.

i mean we can call constructor from static block.
That static block should declare before main method.


Shiva kuamr 07-9-2018 03:07 AM

Check answer

Think how we instantiate an object in the absence of main function so it should be false....

Hamid 02-10-2018 01:53 AM

Answer Modifies

i think its FALSE .
Please check once and update us.

Punam 08-22-2017 03:24 AM


constructors to be called with in the main

raj 05-13-2015 08:15 AM

Answer Modifies


I think constructors are declared before main method but called after main.

Ashutosh 03-9-2015 03:14 AM

this ques

constructor is declared before main but not called before main ..
so plzz ckeck the ans again i think its FALSE

nira 02-16-2015 04:03 AM

Write your comments


Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)