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

Answer Posted / vijayakumar chinnasamy

If there is no constructor in the class , then the compiler
create a default constructor with access specifier of class.


class A{ } - compiler create default constructor for this
class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why java is considered as platform independent?

772


What are the data types supported by java?

743


What is the abstraction?

788


What is java developer skills?

737


What is a module function?

798


explain different ways of using thread? : Java thread

766


Differentiate jar and war files?

779


Can we call a non-static method from inside a static method?

779


Is char a data type in java?

746


Can a constructor be made final?

879


Difference between method overloading and method overriding in java ?

782


When does an object becomes eligible for garbage collection in java?

813


What is the purpose of garbage collection in java, and when is it used?

788


What is command line argument in java?

837


What is anagram word?

748