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

Answer Posted / ranganathkini

If no constructors are explicitly defined for the class,
Java supplies a default no-arg constructor which does
nothing more than initialize the fields of the class to
their default value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define immutable object?

845


What is the difference between serial and throughput garbage collector?

793


What is meant by overloading?

810


How many types of parsers are there?

786


Is set ordered?

737


Explain oops concepts in detail?

788


Can list contain null in java?

883


Is zero a natural number?

778


Can we pass a primitive type by reference in java? How

713


What is a methodologist?

775


What is an immutable object?

785


How do singleton patterns work?

738


Can we create a class inside a class in java?

750


what is ststic with example

1798


Can a class extend 2 classes in java?

783