what is the logic inside any default constuctor?

Answers were Sorted based on User's Feedback



what is the logic inside any default constuctor?..

Answer / harish

in defult constructor there is a statment super(); for
calling to super class constructor.

Is This Answer Correct ?    2 Yes 0 No

what is the logic inside any default constuctor?..

Answer / meena

The default constructor initializes all the variables
declared inside the program to default values.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is package private scope in java?

0 Answers  


84. try { 85. ResourceConnection con = resourceFactory.getConnection(); 86. Results r = con.query(”GET INFO FROM CUSTOMER”); 87. info = r.getData(); 88. con.close(); 89. } catch (ResourceException re) { 90. errorLog.write(re.getMessage()); 91. } 92. return info; Which is true if a ResourceException is thrown on line 86? 1 Line 92 will not execute. 2 The connection will not be retrieved in line 85. 3 The resource connection will not be closed on line 88. 4 The enclosing method will throw an exception to its caller.

1 Answers  


What is int argc char * argv?

0 Answers  


What is hashmap and map?

0 Answers  


Features of JAVA ? In which version of java synchronizedXXX() methods are included in Collections class.

1 Answers   NIIT,






Which is easier .net or java?

0 Answers  


I want to run a simple hello world java (HelloWorld.java) program using a batch file. How can i run it and how to construct a batch file.

1 Answers   Infosys,


what is the use of abstract class and interface with example?

2 Answers   Cycore, DNS, Technoram,


What is anagram word?

0 Answers  


What is double checked locking in singleton?

0 Answers  


If I only change the return type, does the method become overloaded?

0 Answers  


What is a “stateless” protocol ?

0 Answers  


Categories