April 28, 2013

Core Java Interview Questions And Answers

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.

0 comments:

Post a Comment

  • Blogger news

    This Blog Contains All Topics Related To Internet, Website Help, Interview Questions, News, Results From Various Resources, Visit Daily For More Interesting And Famous Topics.
  • Random Post

  • About

    We Provide All Information Which you Needed. We Maintain This Blog Very Carefully, If You Find Any Mistake or Any Suggestions Then Please Let Us Know, You Can Contact Us By Comments, On FB Page Or On Google+ Page. ~ Thank You