select * from game_order where plat_game_id=5 and plat_id=134
select * from game_order where plat_id=134 and plat_game_id=5 and plat_order_id=’100’
select * from game_order where plat_order_id=’100’
select * from game_order where plat_game_id=5 and plat_order_id=’100’ and plat_id=134
select * from game_order where plat_game_id=5 and plat_order_id=’100’
八、下面哪些描述是正确的:( )
public class Test {
public static class A {
private B ref;
public void setB(B b) {
ref = b;
}
}
public static Class B {
private A ref;
public void setA(A a) {
ref = a;
}
}
public static void main(String args[]) {
…
start();
….
}
public static void start() { A a = new A();
B b = new B();
a.setB(b);
b = null; //
a = null;
…
}
}
package cn.com.test;
public class EnclosingOne {
public class InsideOne {}
}
package cn.com.cow;
import cn.com.test.EnclosingOne;
import cn.com.test.EnclosingOne.InsideOne;
public class InerTest
{
public static void main(String[]args)
{
EnclosingOne eo = new EnclosingOne();
//insert code here
}
}
InsideOne ei=eo.new InsideOne();
eo.InsideOne ei=eo.new InsideOne();
InsideOne ei=EnclosingOne.new InsideOne();
EnclosingOne.InsideOne ei=eo.new InsideOne();
十二、@SuppressWarnings(“deprecation”)的功能是什么?
十三、以下代码结果是什么?
public class foo {
public static void main(String sgf[]) {
StringBuffer a=new StringBuffer("A");
StringBuffer b=new StringBuffer("B");
operate(a,b);
System.out.println(a+"."+b);
}
static void operate(StringBuffer x,StringBuffer y) {
x.append(y);
y=x;
}
}
代码可以编译运行,输出“AB.AB”。
代码可以编译运行,输出“A.A”。
代码可以编译运行,输出“AB.B”。
代码可以编译运行,输出“A.B”。
十四、以下程序的输出结果为
class Base{
public Base(String s){
System.out.print("B");
}
}
public class Derived extends Base{
public Derived (String s) {
System.out.print("D");
}
public static void main(String[] args){
new Derived("C");
}
}
BD
DB
C
编译错误
public Derived(String s){
super("s");
System.out.print("D");
}