What is synchronization and why is it important?
Ans- With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Is null a keyword?
Ans- The null value is not a keyword.
What is the preferred size of a component?
Ans- The preferred size of a component is the minimum component size that will allow the component to display normally.
What method is used to specify a container's layout?
Ans- The setLayout() method is used to specify a container's layout.
Which containers use a FlowLayout as their default layout?
Ans- The Panel and Applet classes use the FlowLayout as their default layout.
Ans- With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object's value. This often leads to significant errors.
Is null a keyword?
Ans- The null value is not a keyword.
What is the preferred size of a component?
Ans- The preferred size of a component is the minimum component size that will allow the component to display normally.
What method is used to specify a container's layout?
Ans- The setLayout() method is used to specify a container's layout.
Which containers use a FlowLayout as their default layout?
Ans- The Panel and Applet classes use the FlowLayout as their default layout.
0 comments:
Post a Comment