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 / uthrakumar-wipro technologies

if there is no constructor was defined explicitly it will
define the default constructor...the logic in this was we
are creating a constructor with out our knowledge while
creating an object as follows....

<classname> <obj>=new <classname()>------this is
the constructor we are defining .............

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is int lol?

1142


Why is java called java?

1057


Why string is immutable with example?

985


Can a constructor have different name than a class name in java?

1196


Can we override static methods in java?

1072


What is the purpose of a default constructor?

1099


Why char array is preferred over string for storing password?

1106


Can you tell me range of byte?

992


What is compiler and what its output.

1152


How many types of string data types are there?

1098


Garbage collection in java?

1025


What is the symbol for average?

1030


How to restrict a member of a class from inheriting by its sub classes?

1354


Can you extend main method in java?

1188


Why java is considered dynamic?

1178