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...


Hi buddy, well i got that there is always a default
constructor with abstract class. OK. But why not with interface?

Thanks in advance.

Answers were Sorted based on User's Feedback



Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why no..

Answer / harsha

Just a samll correction... Interfaces are part of
inheritance tree.
Inheritance is identified by both extends and implements
keywords.

Regarding the default constructor.. All the classes which
extend Object class will have a default constructor.

As we all know any interface cant extend Object class..
Interface cannot have default constructor.

Is This Answer Correct ?    4 Yes 0 No

Hi buddy, well i got that there is always a default constructor with abstract class. OK. But why no..

Answer / madhu

yes it is bcz interfaces are not part of the inheritance tree.

after all u can define a contract between 2 different parties
using interfaces nothing more u can expect. its not actually
an executable construct

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the purpose of using java.lang.class class?

0 Answers  


extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


When do we need to use internal iteration? When do we need to use external iteration?

0 Answers  


Can we place the any object to key attribute of HashMap<key,value>?

4 Answers   HCL,


What is the difference between C++ & Java?

78 Answers   College School Exams Tests, HAL, SUN, Syntel, TCS, Wipro,


Which is easier .net or java?

0 Answers  


How do you use substring in java?

0 Answers  


Write a method to check if input string is palindrome?

0 Answers  


what is meant by HQL?

0 Answers   Cap Gemini,


What are the steps to do connection pooling in weblogic?

1 Answers   TCS,


Explain different types of thread priorities ?

0 Answers  


What are the steps that are followed when two computers connect through tcp?

0 Answers  


Categories