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
What is the diffrence between inner class and nested class?
What does jre stand for?
Name few java 8 annotations ?
Difference between association, composition and aggregation?
Can a class extend 2 classes in java?
How to create an interface?
What is garbage collector?
What string is utf8?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
How do you add an element to a set in java?
What is local class in java?
Write a code to create a trigger to call a stored procedure
What is identifier in java?
What is the difference between numeric and integer?
What is a parameter used for?