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

What is the difference between yielding and sleeping?

805


Is string is a data type?

758


What are the rules for naming an array?

748


What is flush buffer?

762


What is sorting algorithm in java?

781


What do you know about the garbate collector?

809


How does a for loop work java?

792


What is the final field modifier?

760


Why java doesn’t support multiple inheritances?

796


how to create multithreaded program? Explain different ways of using thread? : Java thread

753


Does treeset use compareto?

756


What about static nested classes in java?

852


What is the console in java?

920


What does pointer mean?

765


What is jar?

862