Java
Java
Ste
H t ,t upolade the apt Pactage inden with
Cammand lud o apt updo
onee UPdate instalU the DK wth
Sudoapt nstall default-jdk.
3)exiiy he dnitallatian by runnin
aO Vertion,_
Code
Clats Main
Publielaio Voidmaintrlng args
66
Sypdem. Out. printin_ Hello woild");
Page. No. 2
Expt.No.
Page. No..
Expt. No.
Code
Gcolorz
Teacher's Singnature. **********aa*******
Date
Page. No.
Expt. No.(
Code
Clais Tax slaps
Qubllc Ctatic Vald mainString org
Lot intome nteqe Yar s nt (orqsti]
aouble tor 0
Cot egoryAQUalu 1gnose Cote*gtnera"
i DSntom 88 nco n 18oooo) 12
Tax "
Syém:0 u t P i n t i n 6 l o
ele 18o 00/<inco me A income 2 JS0obo9
ta ay do.| income
Syttem.Out Qrintln Fan : Ittam
S0000 ino me 8 i ncome bao
ele i
do taM+.2
inome "
6 :
SyLtem. 0us,intln fam = dax
Teacher's Singnature.*************************"
. Scolorz
Date
eA
Susten. Ou. intlo '6nyadiCotelar|
Ecolorz
Teacher's Singnature.
Date
Code
class find i
lonq addind a long b
retun0t h
n t a ddint i b_,intCE_
etuin 0thtC-
doble adddauble_a double b double C)
Yetun_atb+ C
3
a Colculfor T
obre dotic Uoio majn | S11ínq ora
Hhd ob heuw ind U
on :05j add ( 2)_
Sqiim. 0 01.rint In n _
Sysi tm.ou.rin t nobj.add L, 2,4)
LS4Slem.0u rintinDh add42L,31
ste oi.2ri0ln- obj.add (, 2.43.P,
vaid Phous )
Sy fem 0u. Priniin Porent Phou"
13
pblSiairVeid man (Strinq orq S )
ane ntabi: neud hiId ;
6 b . S how )
Teacher's snbnature Gcolorz
3j
Date
abr dra t l a ) 3 b an -
ab dro intget ko U
Noto dtep(oy C)9
Cytem,ow intln PBT":
eho )
PyA em. Ous.Pi n"HDA : 3
C o y a h i t e tdemo
yTHe Shot'c Uokd m on Sng arqe C)%
oo C a b s Nu
oel new B TCL
ysten.ou.intlno h qet oT ( ) ) |
Obj'Enew Hpf
ads o nder fo u
loat z31t
fLaat End Looda Looi b]
eta Pecjonge mplemen taton oie o
oblic floof Pnd loa1 a l o o t b
Tetun a*b
clas Te d
blic SAot Uoid man( Stríng arqs
are o -neso 6e Conle C_
Areoobe hew_eirc
|Sqs lem. o uw,Qindlo Are a obind|Jo)
Scolorz
Date
Enperimen
Class Tesin4
n t dUw oAInd a) throws Em CeP Aon.
a 6)
ese
Tetu (2 a)
alasTesd
Publie s4aic vo man Sring araA CT)
Catch evceptione)
n alLy
1DublicS4rngto String()
etuT
ala mateh
eHc Vasd mot ehing (Srin Sty throus
NoMoih EnP )
i 8tr g uaiA 2g nosse,Case.6 Ielco me.
ttm. 6ui, PintIn b ma ACh ed
Teacher's Singnature.***es*****e******a*** Gcolorz
Date
Expt. No.
Page. No.
madehing 6 0 wy')
CatchingNomateh ep)£
Sy deyo .prî dio| e
Enpei tment-&
ed
A To dmons drate h e ConcePT od 04
deina4 ac tcog win9 llouin q
Cre o e a neuw Po]ed i
nomed any
LutsC Creoe Pactoe
Create Uarious Clo leles
Onina mthat
ien, moncey and leg hond
liee
n eoch_eais Creot 4
dalamem berf e e
ard g 9 e. Creade mehd
olo uwejq hst
Ute 1g Vegeda«ian,Con cUmb 9etSond,
reate Onohen oje t and n
od tor u
o Ov e ote a o l o J _ Coll ed
A n d oNeate_a
Olass loued Vandalur
6o
Qnd ereate OoecH for onimo
tho ae o and Pk1n
haq cterish U e ach Onmm
the
Oed rior,awa
Poctoge drimal po Ct_
ivatte
ilo wet T
Teacher's Singnature . J
********************
Gcolorz
Date
nd 0g 4"tColoret' fweg u
no
boolen Ve9eari on l I
restu m t o oe'
epha 'pauo
elepha la
o c r o g e animod gPa c k
Dubllc c o s 3 H e P h a n t1
eime nt-9
Aim LwAPto feote three hseadj Ong
o looP to_ ( o and tiliaRe
eep Qndo them
ponier Luw't ch m9_
undeA FRead
metho o
Code
o iny
e ou sintlo
66 e cono dhread",
Teacher's Singnature. *******
Ecolorz
Date
y dem Ou. p B-
o s C e ntend Thead 2
Puble asta Tun ()
as (inttl kLeS te1)z
Siop C)
a s muti h r a d t g
Publtc taie yosd Oo S4*ng arq
AL neu AC
iayt C)L
3 . t a r t C)
,8 tem. o u,4ntlo _ 6 8ye--");
P-1o
Alm Keaolu'nq and wiHnq glota wing
the CharoCter Stre anm
roro Souc
deshnation ile
Codle -
mPort an a. ip.
clais Copy file
Pub licStaHe Uald mal String_arqk CJ
Eil An: neð fle" source tx").
l od=Des file o o utut. +t":
file Reader {r= nulli
Hle W«i ter w null,
Syltem b , intln(
Cheek Ple
u. U oe t)1
CotCh ( E ePH ne) L
sKm bu.grintln)
Gcolorz
Date
Periment -11
A A to_dwdnP Uent Se
Communi Cation uU ing So cke o 9a fomminn
Code
#mort anua,io,*
import awo , net *_
Clats AN e L
S)I
ublie Stotc Vsld madn Strinq ar q
n PoRT 1234S; nt
n u Sevver S'o cket(fovt*
Servt Socket Sekt
Sustem, Out, 9tintln My Sever Started"
System,0 us. pr'n Port"Ss t . tlocal
Sugtem. 0u. rntln w PovtPovtc))
S ict. Ket,oThme o utSoo 0o )
Soclcet SetE Ss et acce Pt
Set
Sysdem6ut. rintln_* Yesdone"t8et)
kuered Readr in: newbufered Readr
heu dnpuy streom Reader S et. get Jpud
S.eCO
Butered Rea kuboorde ne Rufeed
Reader (neu dn Pud 1reo vn Re aouyeten
neus Pvint wyit (f et.
int UUritu 0uut
Q ouutStreom ( , true
ino nul
do
Teacher's Singnature.. ***************
Scolorz
Date
Expt. No.
Page. No.
t i o Pot aa, o
Ctas Ce
Poblfe staHc Uold main (}S1ring Or9s 2
19 7. 0o. 1 ' .
STin PoRTT 84S;
Sting
inaint u34
Soctet Skt=ne Socket(iP,pAF_
Sytem.oul, r t i n | Client";
Su gte0. gd Ptit\n * Port;" fSLt qetPor)\
Stenebu Paind1n Joo ort,+Set qet
em, duT.Pin write loc Po r tCS
Siinq Mul
dot d
Stu e Keyuwondfead ine;
bud.riHn 041)
d1 in, Te adl ine U
Sqtem. 0 ul. 'intin sor Sev yicc 3 T);