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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are abstract functions?

1082


Which keyword specify that a variable is effectively final ?

1047


What is a hashmap used for?

1308


What is the synonym of procedure?

1203


Explain a few methods of overloading best practices in java?

1020


If try block is successfully executed, Then Is Finally block executed?

1126


What is the common usage of serialization? What exceptions occur during serialization?

1197


What is classes in java?

986


What is a function in java?

1081


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2160


Is null a string in java?

1165


In a container there are 5 components. I want to display all the component names, how will you do that?

2248


Why is an interface be able to extend more than one interface but a class can’t extend more than one class?

1218


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2634


Can java cast null?

1080