You are on page 1of 3

JDk featine I-5 v9 1- 7 R.

cPropols JRESm iblw


change to |.5
JDK |- 6 foationa
Store Siml data pu
- GteneUs mboducod tn JDK T5
ubung Jenenits We Can achowe. tHPe. 3ayaty.
enla
-frticulan data type Vauon only Con e
dinnd brackate>)

2) Enhaned br leop
loop is untuodutd in J Dk I5
Enhand fy dixecten
ds
forwand
- It wul l a t Vaes nly in
- Leys chant to
baed
inbaduta in DK
Nomal for loop ib inbatucc
JDKI.5
3) AutobORHg and onboxng Pstmie datatye
Autobong ’ Corveng
a
int a 20)
b-aj
clas Intagon
eg'. ent to Intg Coreapondung
to
Convotng to unt
(nboxng Prmitve ype
eg: Inag
class’ classb Pumtve
WTapþer
Vau'able arguments
Bila: mutable
5) Stung n JDk I·5
- Intsedued eococthon ie not ay Sequnee )
- ASyochoni sad-
CParallel
daad
thead Safe cAe to Patallet chanes.
Not
w ba fas )
- Fast CDue to | e ,
-whle Stuny Buffer
featius oe opposla to
erum ation
6) Enum nJDK |:5
m (·5
Intoducad
To debns Constants in Sungl Vaiabe
import Java- atl. Arayist ;
tnort hva . l . List )

Statie. vod main Csthing C3gi


Dot a-20

t impert Java .util AayList j


7Pryent -
Public. class Employee
Publie void emptd Cint .a)
for Cunti4)
Syoout ci))

Public 8tatic void meun CS Kung Cg ag ) e


Employee Employee'o)
e emp Id C20,30 , 40,50 s b0,20))
33
} Enumn- ble A ib dalatt O/P NON
TUE
vnbort Jova . utl. Arraylbtj WED
THD
Pablie co Employee e FRI
SAT
SON ault

MoN, TUE WED THU,F8I SAT, SUN


KauybSHIET
Publie static vod mein CSbug CJ wq) Kays CN TER J
weeks[Jv = week s.Va (); Ataic
for leekSI:V )
Syout ci);
JDk T dava gE)
Dtuna in Suwleh Cabe
Ca Sungl catch
2> Handling mulliple eaopbon 4Xg-32bu
3) Automatic tpe gonerie Cenersicn 45;/
7 nt a-
nt a 400)
long I Note:
dig
) Unbdavscore beueen verSibn Chigt click
the JaK ve`ion
Nota: We lan change
PropetasJava ompile)
the Proyct > <oatmus |"7
Jdk
uOUolved vn

Public elass Employee i


Statie Vod main
Publie
Syoet ci;
L2);
(3) )
try
Syou
PourExcoptton e) f
Codch CNul
e. Prunt StackTracCel))

Lypout "Suces)

3
5 l e nSgo ic
t c he

You might also like