Class : is a declaration of common properties of a object’s group. It declares attributes of the objects to represent properties and methods to describe behaviors .
Interface: is a contract passed between many classes. In general, it has a name like an adjective (Serializable, Runable..). The interface, in its contract, specifies a set of methodsth be implemented by classes that engage to respect the contract. However, this is not necessary and certain classes use interface as a marker (e.g Serializable to mention that the class is ready for serialization).
Object: is a data structure valued and hidden, it answers to a set of messages. The data structure describes the status and the messages describe the behaviors. We call the data or fields describing the intern structure Attributes, and we call the set of messages the object interface. the communication is assured only trough these messages. The response to a message is called Method.
See also :
- Basic Concepts in Java
- public, private, and protected in Java
- What does static mean in Java?
- What does final mean in Java?
- What does transient mean in Java?
- What does volatile mean in Java?
- Which are types of JDBC drivers?
- Cite three objects included in the JSP page
- What is servlet, what is jsp?
- What's difference between directive and action?
- Which are the struts tagLibs?
- What is Hibernate?
- What's JEE and which are their APIs?
5 comments
No ping yet
Chase Gilzow says:
February 4, 2012 at 3:25 pm (UTC 0)
Awesome post! I will keep an on eye on your blog.
Tonia says:
November 1, 2011 at 10:35 am (UTC 0)
hello!,I like your writing very much! share we communicate more about your post on AOL? I need an expert on this area to solve my problem. Maybe thats you! Looking forward to see you.
Tania says:
October 31, 2011 at 5:23 am (UTC 0)
Hi there very cool site!! Man .. Beautiful .. Wonderful .. I’ll bookmark your website and take the feeds additionally?I’m glad to search out numerous helpful information right here in the submit, we’d like work out extra strategies on this regard, thanks for sharing. . . . . .
Dorothea says:
October 28, 2011 at 5:20 pm (UTC 0)
Hello webmaster, commenters and everyone else !!! blog was absolutely wonderful!
Car repos says:
August 8, 2011 at 1:17 pm (UTC 0)
Hey blogger, nice work with the choice of theme on this blog. It looks reall nice.