hi everybody,
Anyone please clarify the following.
3.Which of the following statements about threading are true?
A)You can obtain mutually exclusive lock on methods that
extends
thread or implements runnable.
B)You can only obtain mutually exclusive lock on methods that
extends thread or implements runnable
C)You can obtain lock on any of methods. --true
D)You can obtain mutually exclusive lock on any of methods.
suprising, nothing about synchronised is there in the options.
Another silly question, but i am confused.
4.Which cannot be used in declaring and initializing an automatic (method call)
variable?
A. Final
B. Public --false
C. Constants of non-primitive type
D. Inner class from other scopes
E. Initialized arrays(such as "{Hello", "Goodbye"})
Thanking all.