#MasteryTopic

--Originally published at Jsph's Blog

Let’s get start with the masteries guys!

What is an…?

Object: Objects are key to understanding object-oriented technology. They consist of state and related behavior. An object stores its state in fields (variables in some programming languages) and exposes its behavior through methods (functions in some programming languages). Methods operate on an object’s internal state and serve as the primary mechanism for object-to-object communication. Hiding internal state and requiring all interaction to be performed through an object’s methods is known as data encapsulation — a fundamental principle of object-oriented programming.

#MasteryTopic

Attribute: An attribute is another term for a field. It’s typically a public constant or a public variable that can be accessed directly. In this particular case, the array in Java is actually an object and you are accessing the public constant value that represents the length of the array. The Attributes class maps Manifest attribute names to associated string values. Valid attribute names are case-insensitive, are restricted to the ASCII characters in the set [0-9a-zA-Z_-], and cannot exceed 70 characters in length. Attribute values can contain any characters and will be UTF8-encoded when written to the output stream.

#MasteryTopic

Method: A Java method is a collection of statements that are grouped together to perform an operation. When you call the System.out.println() method, for example, the system actually executes several statements in order to display a message on the console.

#MasteryTopic

 

Sources:

https://docs.oracle.com/javase/tutorial/java/concepts/object.html

http://www.tutorialspoint.com/java/java_object_classes.htm

http://stackoverflow.com/questions/8479038/what-is-attribute-in-java

http://www.tutorialspoint.com/java/java_methods.htm

http://mathbits.com/MathBits/Java/Methods/Lesson1.htm


#MasteryTopic