Search This Blog

Tuesday, June 9, 2015

RBS Java Interview Questions

RBS Java Interview Questions
Written Test Java Questions
What is the strategy to handle ConcurrentModificationException in your Java program ?
What will be behavior of a Java Program where infinite recursion takes place with limited Stack memory ? Does the program complete or Stackoverflow exception is thrown ?
Comparable vs Comparator ? when should I choose one over the another ?
How will you remove duplicate records from a database table ? Will group by clause help ?

Core Java Interview Questions
How does serialization takes place in Java ? What is purpose of externalizable interface ? What are transient variables ?
Why most of methods in Collections class declared as static ?
What is difference between overloading and overriding ? What is hiding of members and methods - both static and instance one ?
What is ThreadLocal class used for ?
What is purpose of Classloader provided by Java ? What is effect of multiple classloaders on Singleton Class ?
NoClassDefFoundError vs ClassNotFoundException ?
What is proxy design pattern ? What is it's practical usage ?

Design Problems
How will you design a caching implementation where items in cache needs to be expired (deleted from memory) after age of 5 minutes irrespective of the access timing ?
How will you design your own custom thread pool in Java ? Don't use the One provided by JDK.
What do you understand by Producer Consumer Problem ?