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`(B

$B3F!9$N%a%s%P!<$K$O=$>~;R$r;XDj$9$k$3$H$,$G$-$^$9!#2?$b;XDj$7$J$$>l9g$K$b!"%G%U%)%k%H$N=$>~;R$rA*Br$7$?$3$H$K$J$j$^$9!#=$>~;R$O!"Bg$-$/J,$1$FFs$D$KJ,N`$5$l$^$9!#(B

$B%"%/%;%9=$>~;R(B
$B%"%/%;%9@)8f$r~;R!#%Q%C%1!<%8$d%/%i%9$rC10L$H$7$F!"%W%m%0%i%`$N%3!<%I$NB>$NItJ,$+$i$N%"%/%;%92DG=@-$r5-=R$9$k!#%a%s%P!<$N
  • private...$B<+J,<+?H$,4^$^$l$k%/%i%9Fb$+$i$7$+%"%/%;%9$G$-$J$$(B
  • protected...$BF1$8%Q%C%1!<%85Z$S7Q>5$9$k%5%V%/%i%9$+$i$7$+%"%/%;%9$G$-$J$$!#(B
  • public...$BA4$F$N>l=j$+$i%"%/%;%92DG=!#(B
  • $B%G%U%)%k%H!&%"%/%;%9(B...$B0J>e$N2?$l$b;XDj$7$J$$>l9g!#%Q%C%1!<%8!&%"%/%;%9$H$b8@$o$l$k!#F1$8%Q%C%1!<%8$KB0$9$k%/%i%9Fb$+$i$7$+%"%/%;%9$G$-$J$$!#(B
  • $B$=$l0J30(B
    $B%"%/%;%9=$>~;R0J30$N=$>~;R!#%a%s%P!<$N
  • abstract...$BCj>]%/%i%9!"Cj>]%a%=%C%I!#7Q>5$5$l$F
  • static...$B%$%s%9%?%s%92=$7$F$b$7$J$/$F$bMxMQ2DG=$J%/%i%98GM-$N%a%s%P!
  • final...$B7Q>5$G$-$:%*!<%P!<%i%$%I$G$-$J$$%a%s%P!
  • strictfp...FP $B87L)!#ITF0>.?tE@?t$,(B CPU $B$N=hM}7O$K0MB8$;$:$K87L)$KF1$81i;;7k2L$H$J$k!#(B
  • transient...$BD>Ns2=!J%7%j%"%i%$%
  • volatile...$B%^%k%A%9%l%C%I$K$h$k%"%/%;%9;~$K!"I,$:%^%9%?!<%3%T!<$HF14|$r
  • $B$3$l$i$N=$>~;R$O!"F1$8$b$N$rJ#?t;XDj$9$k$3$H$O$G$-$^$;$s!#0[$J$k$b$N$G$b!"F1;~$K;XDj$G$-$k$b$N$HGSB>E*$J$b$N$,B8:_$7$^$9!#(B

    $BNc$($P!"F1$8$b$N$rF1;~$K;XDj$9$k$H%3%s%Q%$%k%(%i!<$H$J$j$^$9!#(B

    class BadExample {
    	// javac $B%(%i!<(B
    	public static static void printMsg() {
    		System.out.println("Hello, World!");
    	}
    }
    

    $B%"%/%;%9=$>~;R$OJ#?tF1;~;XDj$9$k$3$H$O$G$-$^$;$s!#

    class BadExample {
    	// javac $B%(%i!<(B
    	public private void printMsg() {
    		System.out.println("Hello, World!");
    	}
    }
    

    abstract $B$H(B final $B$OF1;~;XDj$9$k$3$H$,$G$-$^$;$s!#(B

    class BadExample {
    	// javac $B%(%i!<(B
    	final abstract void printMsg();
    }
    

    $B$3$l$i$N0UL#$O!"8eB3$N>O$G<+$:$+$iL@$i$+$H$i$k$G$7$g$&!#$3$3$G$O8@8l;EMM$GDj5A$5$l$F$$$k=$>~;R$r%j%9%H$9$k$3$H$rL\E*$H$7$F$*$-$^$9!#(B

    $B%/%i%9$N=$>~;R(B

    $B%/%i%9$N=$>~;R(B
    abstract $BCj>]%/%i%9!#(B$B7Q>5(B$B$5$l$k$3$H$rL@<($9$k!#$3$N%/%i%9$O(B$B%$%s%9%?%s%92=(B$B$G$-$J$$%/%i%9!#%5%V%/%i%9$G$B%$%s%9%?%s%92=(B$B$G$-$k!#(B
    final $B7Q>5(B$B$5$l$?$/$J$$$3$H$rL@<($9$k!#$3$l0J>e5!G=3HD%(B/$BJQ99$5$l$?$/$J$$$H$-$K;H$&!#(B$B%$%s%9%?%s%92=(B$B$O$G$-$k!#(B
    public $BA4$F$N%/%i%9$+$i;2>H$G$-$k!#(B$B7Q>5(B$B$b(B$B%$%s%9%?%s%92=(B$B$b@)8B$,$J$$!#(B
    $B>JN,(B $BF1$8(B$B%Q%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KJQ99$G$-$J$$!#Dj?t$H$7$FMQ$$$k!#(B
    transient $B%*%V%8%'%/%H$N(B$BD>Ns2=(B (Serialization) $B$N$H$-$K!"%U%!%$%k$d%G!<%?%Y!<%9$J$I$N;}B3E*$J5-21NN0h$KJ]B8$7$J$$!#(B
    volatile $B%9%l%C%I(B$B$O!"JQ?t$K%"%/%;%9$9$k$H!"Ev3:%9%l%C%IMQ$N:n6H%3%T!<$r:n@.$7$F:n6H$7!"%*%V%8%'%/%H$N%m%C%/$H%"%s%m%C%/;~$K%^%9%?!<%3%T!<$H0lCW$5$;$k!#$3$N=$>~;R$,$D$1$i$l$?%U%#!<%k%I$O!"%"%/%;%9$N$?$S$K!":n6H%3%T!<$r%^%9%?%3%T!<$K0lCW$5$;$k!#(B

    private, protected, public $B$N;0$D$N=$>~;R$O(B$B%"%/%;%9=$>~;R(B$B$H8F$P$l$^$9!#%/%i%9!"%$%s%?%U%'!<%9!"%U%#!<%k%I!"%a%=%C%I!"%3%s%9%H%i%/%?$KBP$7$FF1$8$h$&$J:nMQ$r;}$A$^$9!#(B

    $B%a%=%C%I(B$B$N=$>~;R(B

    $B%a%=%C%I$N=$>~;R(B
    public $B2?=h$+$i$G$b8F$S=P$;$k!#(B
    protected $BF1$8(B$B%Q%C%1!<%8(B$B$+$=$N%5%V%/%i%9$+$i$7$+8F$S=P$;$J$$!#(B
    $B>JN,(B $BF1$8(B$B%Q%C%1!<%8(B$BFb$+$i$7$+8F$S=P$;$J$$!#(B
    private $BF1$8%/%i%9$+$i$7$+8F$S=P$;$J$$!J%a%C%;!<%8$,FO$+$J$$!K%a%=%C%I!#(B
    abstract $BCj>]%a%=%C%I!#Cj>]%a%=%C%I$r0l$D$G$b;}$D%/%i%9$OCj>]%/%i%9!#%a%=%C%IL>!"0z?t!"La$jCM$ODj5A$5$l$F$$$k$,!"%V%m%C%/Fb$N=hM}!J
    static $B@EE*%a%=%C%I!#Ev3:%a%=%C%I$,Dj5A$5$l$F$$$k%/%i%9$r(B$B%$%s%9%?%s%92=(B$B$7$J$/$F$bMxMQ$G$-$k!#%$%s%9%?%s%9$K$h$i$:F1$8F/$-$r$9$k%a%=%C%I$KMQ$$$k!#(B
    final $B%*!<%P!<%i%$%I(B$B$G$-$J$$%a%=%C%I!#(B$B7Q>5(B$B$K$h$C$F$3$N%a%=%C%I$N5!G=JQ99(B/$B3HD%$O$G$-$J$$!#(B
    synchronized $B%^%k%A%9%l%C%I;~$KF14|$r
    native C/C++ $B8@8l$J$I$N%W%i%C%H%U%)!<%`0MB8$N%3!<%I$G:n@.$5$l$?(B DLL $B$J$I$r

    $B%a%=%C%I$K$OB>$K$b(B strictfp $B$r;XDj$9$k$3$H$,$G$-$^$9!#>\:Y$O8eB3$N>O$G@bL@$7$^$9!#(B

    $B%3%s%9%H%i%/%?(B$B$N=$>~;R(B

    $B%3%s%9%H%i%/%?$N=$>~;R(B
    public $B$I$3$+$i$G$b8F$S=P$;$k!#(B
    protected $BF1$8(B$B%Q%C%1!<%8(B$B$+!"$=$N%5%V%/%i%9$+$i$7$+8F$S=P$;$J$$!#(B
    $B>JN,(B $BF1$8(B$B%Q%C%1!<%8(B$BFb$+$i$7$+8F$S=P$;$J$$!#(B
    private $BF1$8%/%i%9Fb$+$i$7$+8F$S=P$;$J$$!#(B

    $B%$%s%?%U%'!<%9(B$B$N=$>~;R(B

    $B%$%s%?%U%'!<%9$N=$>~;R(B
    abstract $BCj>]%/%i%9!#(B$B7Q>5(B$B$5$l$k$3$H$rL@<($9$k!#$3$N%/%i%9$O(B$B%$%s%9%?%s%92=(B$B$G$-$J$$%/%i%9!#%5%V%/%i%9$G$B%$%s%9%?%s%92=(B$B$G$-$k!#(B
    public $BA4$F$N%/%i%9$+$i;2>H$G$-$k!#(B$B7Q>5(B$B$b(B$B%$%s%9%?%s%92=(B$B$b@)8B$,$J$$!#(B
    $B>JN,(B $BF1$8(B$B%Q%C%1!<%8(B$BFb$+$i$7$+;2>H$G$-$J$$!#(B

    $B%$%s%?%U%'!<%9$K$OB>$K$b!"(Bstrictfp $B$r;XDj$G$-$^$9!#$^$?!"FbIt%$%s%?%U%'!<%9$K$O!"(Bprotected, private, static $B$r;XDj$G$-$^$9!#>\:Y$O8eB3$N>O$G@bL@$7$^$9!#(B

    $B$3$3$G$O!"%/%i%9!"%$%s%?%U%'!<%9!"%3%s%9%H%i%/%?!"%a%s%PJQ?t!"%a%=%C%I$N=$>~;R$rNs5s$7$^$7$?!#H$7$F$/$@$5$$!#(B



    Copyright © 2001-2003 SUGAI, Manabu. All Rights Reserved.
    SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送