Monthly Archives: July 2016

JSP Interview Question and Answer

java-logo

There are so many questions in JSP but usually in the interview process few questions which is being asked frequently. Due to time constraint , Interviewer not get chance to ask more, as they start from core java and ask more questions from core java. As soon as reaches on JSP they face time crunch not able to asked more. But sometimes, they can focus more practical sort of questions, specially if they have more work on web component or server side component.
Continue reading JSP Interview Question and Answer

Difference between RPC Style and Document Style SOAP web Services in Java?

java-logo
In Java web services specially JAX-WS standard, RPC and Document are two different approach of creating JAX-WS style of web service. RPC is older one and Document is newer one. RPC style generate WSDL document based on the method name and it’s parameters. No type definitions are present in WSDL document.
Document style contains type and can be validated against predefined schema. Let’s look at these with a simple program. Below is a simple test program where I am using Endpoint to publish my simple SOAP web service.
Continue reading Difference between RPC Style and Document Style SOAP web Services in Java?

RESTful Web services Interview Questions and Answers

Java web service
Although there can be so many questions raised in the mind of interviewer, when specially web services requirement they have. I tried to add some of the most commonly interview questions which my friends and I encountered the interview. This section consist only RESTful web services interview and you can find another page of SOAP based web services Interview questions and answers.
Continue reading RESTful Web services Interview Questions and Answers

Difference Between HashMap and HashSet in Java

java-logoHashMap and HashSet is one of the most frequently asked interview question during any level of core java interview. Usually, Collection framework and multi-threading interview questions are mostly on demand for core java interview question.

Both HshMap and HashSet are integral part of Collection framework in java. These are most frequently used collection classes, it means , HashMap from Map , HashSet from Set and ArrayList from List in java.
Continue reading Difference Between HashMap and HashSet in Java

fail-fast iterator vs fail-safe iterator in Java

Oracle Java
When I first encounter with these terminology, some questions arise in my mind about fail-fast and fail-safe , in initial days. When we add anything while iterating we encounter ConcurrentModificationException, specially , when we delete element from collection while iterating using for-each loop of jdk 5. I hope every developer in their life must encounter ConcurrentModificationException. The concept of fail-safe terminology in java iterator is new. First introduced with Concurrent Collections in Java 5 e.g. ConcurrentHashMap and CopyOnWriteArrayList.
Continue reading fail-fast iterator vs fail-safe iterator in Java