Saturday, 22 April 2017

introduction to java and features













oop features:

class
object
Inheritence
polymorphism
Data Abstraction
Encapsulation





java versions:

java jdk1.0,1.1
java2 1.2,1.3,1.4
java5 1.5
java6 1.6
java7 1.7
java8 1.8



j2se
j2ee
j2me

1
simple: pointers eliminated
app development time is less
Bytecode
bytecode os independent,jvm os dependent
jit compiler (just in time)
API

paltform independent:

MultiThreading:



Robust: exception

dynamic:   static---mem wastage,overlapping

security: api





---------------------------------------------------------------------



Primitive type Size Minimum Maximum Wrapper
type
boolean 1-bit – – Boolean
char 16-bit Unicode 0 Unicode 216- 1 Character
byte 8-bit -128 +127 Byte
short 16-bit -215 +215 – 1 Short
int 32-bit -231 +231 – 1 Integer
long 64-bit -263 +263 – 1 Long
float 32-bit IEEE754 IEEE754 Float
double 64-bit IEEE754 IEEE754 Double
void  Void


---------------------------------------------------------------------



The primitive data types also have “wrapper” classes for them.
That means that if you want to make a non-primitive object
 on the heap to represent that primitive type, you use the
associated wrapper.


Character C = new Character('x');


-----------------------------------------------------------

variables

declaration
definition
Rules to define

----------------------------------------------------------

constants


final int a;

-------------------------------------------------------------


final classes not support inh
coomon to all final methods

--------------------------------------------------------------

Methods

definition
calling
-----------------------------------------------------------



Method overloading
Method Overriding

--------------------------------------------------------------


data security

--------------------------------------------------------------

No comments:

Post a Comment

introduction to java and features

oop features: class object Inheritence polymorphism Data Abstraction Encapsulation java versions: java jdk1.0,1...