★★★★JaVa 选择题★★★★ - Java / Java SE
Question 1 (1 mark)
Which of the following are valid method headers ?
A public static int[] meth(int[] x)
B public static int meth(int[] x)
C public static int meth(int x)
D public static int[] meth(int x)
Question 2 (1 mark)
In the following code C is a subclass of B and B is a subclass of A. Which of these must be declared abstract ?
class A {
public abstract void addOne();
protected int x;
}
class B extends A{
protected int y;
}
class C extends B {
public void addOne() {
x++;
y++;
}
}
A B
B A
C C
Question 3 (1 mark)
In the SomeOtherClass method increment(), which of the statements below are valid ? (choose all)
class A {
…
private int a;
int b;
protected int c;
public int d;
}
class SomeOtherClass { // not in same package
void increment() {
A refA = new A(...);
// statements to be inserted here
}
}
A refA.b++
B refA.d++
C re
相关问答:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 52 in the jsp file: /vip_info.jsp
ÕË cannot be resolved
49: <table border="1& ......
使用java在windows7 32位下连接MSSQL。
两台机器,windows7 32位,在控制面板里面全部设置语言和区域选项都english-unitedstates
唯一区别只有在安装SQL server 2008的时候 选择的字符集不一样,
exec sp_helpsor ......
如: @superwaring("unchecked");
这个里面都可以取哪些值啊,还有类似的 @superwaring标签有哪些啊
没用过。。
看jee的api
javax.persistence里
@superwaring("unchecked");只是忽略 ......
程序如下:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......
现在不想用<a> </a> 标签 ,因为点击后会出现页面重定位,给文字加上css样式就可以看起来 是href怎么实现这样的css
text-decoration:underline; cursor:hand;
引用
text-decoration:underline; cur ......