wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes INTERFACE & ABSTRACT in JAVA!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "INTERFACE & ABSTRACT in JAVA!!!" Watch "INTERFACE & ABSTRACT in JAVA!!!" New topic
Author

INTERFACE & ABSTRACT in JAVA!!!

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
What is the use of Abstract in Java? why we need to use Abstract and Interface in java?
Thanks in advance!
ADS
Daniel
Greenhorn

Joined: Dec 01, 2000
Posts: 9
Interface is Java's solution for mutiple inheritances. Unlike C++, Java doesn't support multiple inheritance.
Abstract class is like a template for other classes. No objects can be created from an abstract classes.
I'd recommend Core Java or Just Java if you want to learn more.
Daniel
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
HI DANIEL
THANKS A LOT!
ADS
Originally posted by ADS:
What is the use of Abstract in Java? why we need to use Abstract and Interface in java?
Thanks in advance!
ADS

 
Don't get me started about those stupid light bulbs.
 
subject: INTERFACE & ABSTRACT in JAVA!!!