50 Java Design Pattern Interview Questions for experienced

1. When will you use Strategy Design Pattern in Java? Strategy pattern is very useful for implementing a family of algorithms. It is a behavioral design pattern. With Strategy pattern we can select the algorithm at runtime. We can use it to select the sorting strategy for data. We can use it to save files … Read more50 Java Design Pattern Interview Questions for experienced

Top 50 JSP Interview Questions and Answers

1. What are the implicit objects in JSP? JSP has following implicit objects: 1. Request 2. Response 3. Application 4. Exception 5. Page 6. Config 7. Session 2.How will you extend JSP code? We can extend JSP code by using Tag libraries and Custom actions. 3. How will you handle runtime exceptions in JSP? We … Read moreTop 50 JSP Interview Questions and Answers

100 Java Tricky Interview Questions and Answers (Part 2)

51. Is it ok to use random numbers in the implementation of hashcode() method in Java? No. The hashcode of an object should be always same. If you use random number in hashcode() method, then you may get a different value of hashcode for same object. This will break the hashcode contract. 52. Between two … Read more100 Java Tricky Interview Questions and Answers (Part 2)

100 Java Tricky Interview Questions and Answers (Part 1)

1. Is there any difference between a = a + b and a += b expressions? When we add two integral variables e.g. variables of type byte, short, or int in Java, then they are first promoted to int type, and then addition happens. The += operator implicitly casts the result of addition into the … Read more100 Java Tricky Interview Questions and Answers (Part 1)

55 Java 8 Interview Questions and Answers

In this post Java 8 Interview Questions and Answers, we are going to explore some of the JDK8-related questions that might pop up during an interview. Java 8 is a platform release packed with new language features and library classes. Most of these new features are geared towards achieving cleaner and more compact code, and … Read more55 Java 8 Interview Questions and Answers

Please share it if you found this useful
Hide Buttons