This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA
317S , 8
< B 14@ 3862;/T@ @4 EGPP$'G) >8@ 8 A,8 1 8 , 1:=31> @8 ? 2< >8 JQ8= A6 @O
83?;6
1 +8 A,8 1 8 , 3 1 / /, A A?1 , 7, , A
1/ 6 8-U 8 +> A, < B , 6-U 8 8 K3 1 / /A / , A
< BA , ;6 8-U 8 036 9 8 01
A :6 46 8-U 8 8 ;V3/
7S , 8
3 1/ 7,: 5
A ,
; 8 76 L 2< >8 A, < B > 1
;8 , 1:= ,@ 8 76 L 2< >8
9/=
< B. @ .; U /@ 86JQ8= A68 ? ?.; ; B U
@/ @8 76 L >31>8. ?2< >8 836 KAK: @ .; @/
< 16, 76 L 76 L
U2;/
,6 /
,6I6. 2 I, 4 B4=W E" ! PXPG(P)
82 8 8 76 L KA.JJY ;3B 8 /K
A ;,
1 IJ = > = 7
9
Z$[ @ <3/ A7 @ :3 /K <\*-* ]]^
. @U86>73 J = _D $H (" G_G G )
#`a *b< 18 -KA <\]]c #`a
A6
< 18 = #CE #$%$C" $DE$!F"G) ?:
7 =
223/ =
#de #$%$d " (Ge %" (G ) KAK 8 62< >8
#fW`a #$%$f W Hg$G`G%GD_(G a")8
#CE 223/KA 6 .73 = >31 , >3162< >8
7 =
= K8
.73=
2< >8 I = ;2;311><3 8 . = 2; iXG! G) 8 . = 2; 16 1 7, = 2;/KA#CE #$%$C" $D E$!F"G) <32< >8 . = 2;K: 73 J = 6
#CE 7, #CE
= 14
5 62< >8 . = 2;.; 1
= : j = ;> =
K
18 B I = KA.JJY @O 2 -6 7= 44 4 =8 = ;
#CE /@
6
8 ?
2< >8
#de #de 162; ><3
8#CE2;/ 1 ?
2:3;. = 2;2;/KAmD $PPn $G 4 . = 2;2;/KAoXGm GCG" H " G 6. = 2;2;/KAd " (G G_GG
l 6
6
8 ?
#de
#fW`a #$%$f W`a W Hg$G`G%GD_(G a") ;,A #`a> @@ <3/ A@ #`a *f 2< >8 #$%$f W`a h $%$!*GpGq2< >8 h $%$*GpG q2< >8
#$%$f W`a. @2< >8
.73 = , = 7 =#CE)
; ,
=
#$%$`e>31#$%$e " #$%$`e
rGiG$P ,6W E" ! PXPG(PF _q s s ggg* GiG$P* ') e!D " _PG ,6 oE F _q s s G!D " _PG* ') #o " DG ,6o D $ F _q s s ggg*i D $ *!(s h i" DG) #`G%GD_G ,6Z$!D GF _q s s ggg* $!D G*!() " GD D " #`eM ,6#Go$"PF _q s s ggg*h Gi$"P*!(s "G$)
#$%$e "
e "&DP #mG$
,6eWtm (_ "'F _q s s ggg*G"_DP*!() ,6u" pW Hg$GF _q s s ggg*h !G$ *!()
;;@ 9 @/ P" (_D G) A, < B ih G! " G G) 8 81 / " P" i G) 8
;;@ 9 ,
7 =
" G_GG)
< 14,+, 74 F" 'F_GH ($!G) 3, 6 + ; ( D"FG$G) 73 6 X$(" !)
#$%$&D $H ( >73 J =8B j = ;> = >31PHg$GG%" (G 2< >8 >73 J =
< 18 ; /
#$%$C" $DE$!F"G #$%$M__D " !$" & '$(("' GH $!G#$%$M&)
1KAK 8 6
#$%$&D $H ( ,6I6. 2 I, 4 B4= .;8?: ;>73 J = #$%$f &D $H (vW$ $ e "" #fWe) #$%$f &D $H (ve G_" PGe "" #fee) #$%$f &D $H (vE" ! e "" #fEe)
#$%$f .4 <>
#$%$&D $H (
#fWe
#fee
#fEe
2< >8 2< >8
< 1/9 8 =#$%$M__D " !$" )
2< >8 KA 6.< 2< >8 ? /K , 2< >8 > W$ $D G
2< >8
2< >8
7 =
> <73B #$%$M__D G)
?
/K 2< >8
=
I = #CE
8 4 2< >8 /I = ;2;
HelloWorld.java
.73= 2< >8 javac HelloWorld.java HelloWorld.class
62< >8 java HelloWorld
< 1/9 8=
HelloWorld.java public public class class HelloWorld HelloWorld {{ public public static static void void main(String main(String args[]) args[]) {{ System.out.println("Hello System.out.println("Hello World"); World"); }} }}
6 /@8 KA#$%$`e
<>4; 6
8 ?
8 4 2< >8 2< >8
> <73B
> <73B 1 .J3= / U4 .J3=
2< >8 I = ;2; *h $%$) 2< >8 B7 *F(D )
6
8 ?
/ 2< >8 I ; =2; HelloWorldApplet.java .73= 2< >8 HelloWorldApplet.class KA2< >8 B I = K;O<w ;2< >8 HelloWorld.html
HelloWorldApplet.java import import java.awt.*; java.awt.*; import import java.applet.*; java.applet.*; public public class class HelloWorldApplet HelloWorldApplet extends extends Applet Applet {{ public public void void paint(Graphics paint(Graphics g) g) {{ g.drawString("Hello g.drawString("Hello World",20,20); World",20,20); }} }}
HelloWorld.html
<TITLE>HelloWorld <TITLE>HelloWorld Example Example <APPLET <APPLET CODE="HelloWorldApplet.class" CODE="HelloWorldApplet.class" WIDTH="300" WIDTH="300" HEIGHT="300"> HEIGHT="300">
<>4; 6
8 ?
6 /@8 62< >8
B
I =
#$%$M& ` !(G $" 84 K <> xyEn +, / & '$(("' GH $!G) 4
38/ 86M& M__D " !$"
5 1 g D$ .; 8
/8; D "G.; F _q s s h $%$*P *!(s h fPGs*^*bs !Ps $_"
@ #$%$M& #$%$M&31 , K >7 8B z @ #$%$M& 1>4; /31 /; @O
= J4 @O 8?: ;.
3 4:
3?;68 4 ; 3 4 ? +, /8/ 86 3 4>319 ;< 14 =6.< /A 9 036 8 01 @O 34 /A + ; @O 34 /A m P ! @O 34 ? +, / /31 /; 9 036 8 01> @ 31 6 3 4 ? +, / /31 /; + ;> @ 31 6 3 4 ? +, / /31 /; m P ! > @ 31 6 3 4
,
= J4;6
6 /@ #$%$M&
49 < : 1;64 > @ 831 A, < B <3 > .73 = >31 , = 7 K8 = .73= >3162< >8 .73 = 1 ?: ><32< >8 K: 8 . = 2;IU1KA , = 7 =#CE) K 8 ><32< >8 . = 2;K: 8 4 5? >73 J =.;5 1 7, =6 #CE /@ >73 J = < 18 .<; /#CE>31#$%$M& IU#$%$f >73 J =l > #fWev#fee>31#fEe
49 < : A9 ;76 L 2< >8 #$%$f W`a< 18 .<; /2< >8 @O 4? 6 R 2< >8 .73 =javac.exe) >312< >8 , = 7 =java.exe) 2< >8 /@ >73 J =#fWe4 576 L .;4 <> 2< >8 < 1/9 8= IU1 ? /K #CE2;/ >312< >8 > <73BIU1 ? /K B I = #CE @ #$%$M& 1A@/K 8 : /31 /; >7 8B>31 3 4 @O /@ K A9 ;76 L 2< >8 #$%$f W`a
> {| 8:6 ; > {| 8:6 ; 8 / 2< >8
> {| 8:6 ; f8 / 2< >8
/ 2< >8
< 1/9 8 =/@ @/
/ 2< >8
> <73B /@ @/
< 1/9 8= 7 >4; > <73B7 >4;
> {| 8:6 ; l 8 KA @ #$%$M&
xGD D} D
}GD !(G #$%$