23-04-2012, 04:01 PM
JAVA TECHNOLOGY
my Presentation.pptx (Size: 211.15 KB / Downloads: 32)
Introduction
Object Oriented Programming Language
Platform Independent
Developed by Gosling
Developed at Sun Microsystems
Released in 1995
Constructor
A class contains constructors that are invoked to create objects from the class blueprint. Constructor declarations look like method declarations, except that they use the name of the class and have no return type…
This keyword
When we declare the name of instance variable and local variables same , This keyword helps us to avoid name conflicts.
In the example, this.length and this.breadth refers to the instance variable length and breadth while length and breadth refers to the arguments passed in the method
Syntax
The syntax of Java is largely derived from C++, Unlike C++, which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object-oriented language. All code is written inside a class, and everything is an object.