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
Define immutable object?
What is the difference between serial and throughput garbage collector?
What is meant by overloading?
How many types of parsers are there?
Is set ordered?
Explain oops concepts in detail?
Can list contain null in java?
Is zero a natural number?
Can we pass a primitive type by reference in java? How
What is a methodologist?
What is an immutable object?
How do singleton patterns work?
Can we create a class inside a class in java?
what is ststic with example
Can a class extend 2 classes in java?