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…}