3,23
- Java, , .
.
public ;
abstract. . .( ). . , .
private ;
final ( , ) . .
strictfp Java.
, (default).
7
- .
, .
, .
( ) - , null, .
Body sum=new Body()
8
- , , . , Java , ,
.
, , - .
classa Body{
Body(){}
Body(x,y){..}}
4,5,22
<> =
:
public- ( )
protected "" (.. ) ;
final
private ;
static ( )
volatile
transient ;
6
, ( , - , ) .
|
|
. :
public;
private;
protected;
, (default).
9
{}
. .. {} Static.
10,23
, .
(, (-,))
<> ..(..){ }
: package ( ), protected,public, static,; abstract ( ), final,
native ( :++,)
,
11
. ,,
<>.()
.
:
1. ( , )
2. ( , )
: , return , :
1.
2.
This 13
This.=
(. , )
16
, ,
( )
. 17
1.
2.
3.
14
( , , , ) ,
.
Main .( )
,, String( )
native ( :++ ,)
public native int meth()
( )
15
. . , . -. , .
|
|
. extends