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
How to solve the problem of generating the unique hash keys with hash function?
Explain different types of wrapper classes in java?
How do you create a first line indent?
Can we create an object of private class?
What is a JAR file?
Do we have pointers in java?
Can we create constructor in abstract class ?
List out benefits of object oriented programming language?
What is a prefix function.write down a code to compute prefix function.
Name component subclasses that support painting in java programming?
Which class is the superclass for every class in java programming?
Can a vector contain heterogenous objects?
When we should use serialization?
What is memory leak and how does java handle it?
What is main in java?