- 25
- 0
- 约1.87万字
- 约 24页
- 2016-11-22 发布于贵州
- 举报
北京神州数码思特信息技术股份有限公司JAVA工程师笔试题
1:What is written to the standard output given the following statement:System.out.println(4|7);?Select the right answer:?A.4?B.5?C.6?D.7?2:
What will happen when you attempt to compile and run the following code?
public class Static
{
static
{
int x = 5;
}
static int x,y;
public static void main(String args[])
{
x--;
myMethod();
System.out.println(x + y + ++x);
}
public static void myMethod()
{
y = x++ + ++x;
}
}
Choices:
A.prints : 2?B.prints : 3?C.prints : 7?D.prints : 8?3:Which statements about Java code security
原创力文档

文档评论(0)