java 英文面试笔试题 Question: What is transient variable
Answer: Transient variable cant 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 cant 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
In non synchroni