石化盈科笔试题.docx石化盈科笔试题
石化盈科笔试题
1 / 71
石化盈科笔试题
石化盈科笔试题
.
public class Encapsulation{
class ClassValue{
public in
*/
public static
void
main(String[]args){
石化盈科笔试题
石化盈科笔试题
7 / 77
石化盈科笔试题
Aa=
newB();
if
(a
instanceof
A){
System.
out
.println(
"A"
);
}
if
(a
instanceof
B){
System.
out
.println(
"B"
);
}
}
}
石化盈科笔试题
石化盈科笔试题
7 / 77
石化盈科笔试题
public class Polymorphic{
/**
***@paramargs
*/
public static void main(String[]args){
TODOAuto-generatedmethodstub
Parentpare= newSub();
();
石化盈科笔试题
石化盈科笔试题
11 / 711
石化盈科笔试题
}
}
class Parent{
public void show(){
System. ( "class Parentshow" );
}
}
class Sub extends Parent{
public void show(){
System. ( "classSubshow" );
}
}
public class tryCatch{
/**
***@paramargs
*/
public static void main(String[]args){
try {
System. ( "begin" );
System. ( "end" );
return ;
} catch (Exceptione){
System. ( "excepton" );
} finally {
System. ( "finally" );
}
石化盈科笔试题
石化盈科笔试题
12 / 712
石化盈科笔试题
}
石化盈科笔试题
石化盈科笔试题
7 / 77
石化盈科笔试题
}
public class MySort{
public static void main(String[]args){
MySortsort= newMySort();
int []arr= new int []{3,22,11,5,400,99,20,22,5};
(arr);
for (int i:arr){
System. (i+
石化盈科笔试题 来自淘豆网m.daumloan.com转载请标明出处.