Real Big Java Index
http://download.oracle.com/javase/tutorial/reallybigindex.html
Java Interface as type
http://download.oracle.com/javase/tutorial/java/IandI/interfaceAsType.html
Webservices:
http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/JavaWSTutorial.pdf
Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts
Thursday, June 9, 2011
Thursday, June 18, 2009
Difference Between Abstract Class and Interface
Difference between abstract Class and Interface
a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract.
b) In abstract class, key word abstract must be used for the methods
Whereas interface we need not use that keyword for the methods.
c) Abstract class must have subclasses whereas interface can't have subclasses.
d) By default what ever variables we decalre in interface are public static final,where as in abstract class they can be default and instance variables also
a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract.
b) In abstract class, key word abstract must be used for the methods
Whereas interface we need not use that keyword for the methods.
c) Abstract class must have subclasses whereas interface can't have subclasses.
d) By default what ever variables we decalre in interface are public static final,where as in abstract class they can be default and instance variables also
Question
What does the keyword 'static' mean?
Answer
The static keyword denotes that a member variable, or method, can be accessed without requiring an instantiation of the class to which it belongs.
Labels:
Abstract classs,
Interface,
Java,
Keyword,
static,
Static Keyword
Welcome !!!!!
Hi
This blog is for those who are looking for quick learning on various technology related topics. Since I work on Java, most of the posts would contain information on Java...
I hope this would be useful .....Wish you good luck..
Viswanath
This blog is for those who are looking for quick learning on various technology related topics. Since I work on Java, most of the posts would contain information on Java...
I hope this would be useful .....Wish you good luck..
Viswanath
Subscribe to:
Posts (Atom)
