Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Oops
« Previous
Next »
Constructors have to be called before the main function
Options
- True
- False
CORRECT ANSWER : True
Discussion Board
Answer
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.
thanks.
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
answer
constructors to be called with in the main
raj 05-13-2015 08:15 AM
Answer Modifies
Hi,
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
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲