Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 singleton class and how can we make a class singleton?

1153


Can we inherit a class with private constructor?

1179


What are adapter classes?

1105


What are the main differences between the java platform and other platforms?

1108


Difference between Linked list and Queue?

1080


What is sortedmap in java?

1080


What is void class in java?

1026


Which is a valid identifier?

1297


why java uses class level type casting ?

2703


What is ‘has a’’ relationship in java?

1277


How is it possible for two string objects with identical values not to be equal under the == operator?

1035


How can you read an integer value from the keyword when the application is runtime in java? example?

1198


What should I import for arraylist in java?

1095


What is the purpose of format function?

1239


What is method overriding in java ?

1254