keywords Flashcards
1
Q
What is keyword “native” used for?
A
The native keyword is applied to a method to indicate that the method is implemented in native code using JNI.
2
Q
Can native be applied to data members?
A
No - just methods
3
Q
Can keyword “synchronized” be applied to data members?
A
No
4
Q
Can keyword “transient” be applied to data members?
A
Yes, used to indicate that a field should not be serialized.
5
Q
Can keyword “transient” be applied to methods?
A
No