hCentive Java Interview Questions

Carvia Tech | December 31, 2017 | 1 min read | 49 views

Multi-threading Questions

  • What do you understand by thread-safety ? What are various mechanisms to achieve thread-safety in java ?

  • How will you design your own ReentrantReadWriteLock class where one thread can write and many threads can read in parallel ? How does it affect the throughput of a multi-threaded system ?

  • What are various methods to acquire lock in java ? discuss their comparison.

  • How to avoid deadlock in your application ?

  • How is ConcurrentHashMap better than hashmap in java ?

General Java

  • What are different memory generations in Java ? What is Stack and heap memory ?

  • Write a thread-safe Singleton Java Class.

  • What is difference between hashtable, hashmap and Concurrenthashmap in java ?

  • What is difference between Iterator and ListIterator in Java ?

  • What is Immutable Class ? What is reason behind using a Immutable class in your application ?

  • What is difference between String, StringBuffer and StringBuilder ?

  • What is difference between CheckedException and UncheckedException ? Give some example of RuntimeException ?

Spring Framework

  • What are different Bean scopes in Spring ? What is the default bean scope ?

  • How many objects Spring container creates for a given bean definition ?

  • What is Bean Lifecyle ?

  • How do you encrypt a password in spring security ?

  • Describe practical use of Spring Interceptors ?

  • What is Servlet LifeCycle ?

  • How do you declare a custom error page in Spring ?

  • What is difference between doGet() and doPost() methods ?

  • What is difference between Forward and Redirect ?

Top articles in this category:
  1. UBS Java Interview Questions
  2. Morgan Stanley Java Interview Questions
  3. Sapient Global Market Java Interview Questions and Coding Exercise
  4. Citibank Java developer interview questions
  5. Goldman Sachs Java Interview Questions for Senior Developer
  6. ION Trading Java Interview Questions
  7. Multi-threading Java Interview Questions for Investment Bank

Find more on this topic:
Java Interviews image
Java Interviews

Interview - Product Companies, eCommerce Companies, Investment Banking, Healthcare Industry, Service Companies and Startups.

Last updated 1 week ago

Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info