Java Programming
Java Programming
Java
It is a high level programming language .it can also be referred to as a
platform.
Features of java
It is an object orientated language
It is simple
Secure
Portable
Dynamic -able to adopt to evolving environment.
A class
type methodname(parameter)
// body of function }
}
Class sample
Void ()
// body }
JAVA identifiers
A key word cannot be used as an identifier. Any word that has a meaning in
java
Java modifiers
Final
Abstract
Final, the class cannot be inherited .final attributes and methods
cannot be modified
Abstract, the class cannot be used to create object. Abstract methods
do not have a bonding.
DATA TYPES
1. PrimitI’ve
2. Non primitive
Primitive has