Java - Online Test - Synchronization -


Search Java Test Questions

 223 test questions in repository.

Java - Test Questions on 'Synchronization' - 3 questions found

Which keyword is used to provide explicit access of a code block to single thread ?Core Java

  java  threads  multithreading

Which of the following is not the difference between Singleton and Static class ( Class with static members only ) ?Core Java
Only one object can be created for Singleton class whereas No objects are created for static class.
Singleton class instance is initiated using new keyword whereas static class instance is created using static method.
Singleton class can be serialized whereas Static class cannot be.
Singleton Class can participate in runtime Polymorphism whereas Static class cannot.

  java  oops  singleton  design pattern  static class

The use of volatile keyword facilitates ..Core Java
Making Use of Cache for better Performance
Avoiding use of Cache
Making use of Backward as well as Forward Cache
Keeping only one copy of variable in Cache

  volatile  java keywords

comments powered by Disqus