In what circumstances, compiler will supply a default
constructor for a class?

Answer Posted / ravikiran

when ther is no other constructor defined

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is integer a class?

560


What are the ways to instantiate the class class?

591


What are the differences between processes and threads?

508


What are namespaces in java?

519


Can we sort arraylist in java?

555






Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

511


Is 0 true or false in java?

515


How to create an immutable class?

564


What is update method called?

655


Difference between default and protected access specifiers?

495


What is java virtual machine and how it is considered in context of java’s platform independent feature?

643


What are access specifiers in java ?

587


Define jit compiler?

653


What is class forname?

540


Variables used in a switch statement can be used with which datatypes?

510