简答题:本题定义了一个求两个数的最大值的方法max,并调用该方法计算67和23的最大值。 public class javal

  • 题目分类:Java
  • 题目类型:简答题
  • 查看权限:VIP
题目内容:
本题定义了一个求两个数的最大值的方法max,并调用该方法计算67和23的最大值。
public class javal{
public static void main(String[]args){
javal temp=new javal();
int res=max(67,23);
System.out.println("res="+res);
}
static int maX( ){
int maxNum;
if(a>b)

else
maxNum=b;

}
}
参考答案:
答案解析:

JDK中提供的文档生成器是(  )。

JDK中提供的文档生成器是(  )。 A.javadoc.exe B.javap.exe C.java.exe D.javaprof.exe

查看答案

对长度为n的线性表进行顺序查找,在最坏情况下需要比较的次数为(  )。

对长度为n的线性表进行顺序查找,在最坏情况下需要比较的次数为(  )。 A.125 B.n/2 C.n D.n+l

查看答案

When the girl began to sneeze continuously,________

When the girl began to sneeze continuously,________A.a lot of people offered t

查看答案

How many seats are therein the restaurant?

How many seats are therein the restaurant?A.20. B.10. C.30.

查看答案

Only your best friendswill tell you that you look young.

Only your best friendswill tell you that you look young. A.Right. B.Wrong. C.Doe

查看答案