當前位置:學識都>好好學習>考研>

JAVA工程師選擇題

學識都 人氣:4.33K

選擇題

JAVA工程師選擇題

1:Which modifier should be applied to a method for the lock of object this to be obtained prior to excution any of the method body?

hronized

ract

l

ic

2:

Give the following Java source fragement:

//point x

public class Interesting{

//do something

}

Which statement is correctly Java syntax at point x?

Give the following java source fragement:

//point x

public class Interesting{

//do something

}

Which statement is correctly Java syntax at point x?

ic class MyClass{//do other thing…}

ic int PI=3.14

s MyClass{//do something…}