Java 英文面试题经典英文 Java 面试题Question: What is transient variable
Answer: Transient variable can't be serialize
For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can't be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null
Question: Name the containers which uses Border Layout as their default layout
Answer: Containers which uses Border Layout as their default are: window, Frame and Dialog classes
Question: What do you understand by Synchronization
Answer: Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time