API Testing Interview Questions – Set 02

What is the HTTP protocol supported by REST? GET: GET is used to request data from the specified resource. GET request can be cached and bookmark. It remains in the browser history and has length restriction. When dealing with sensitive data GET requests should not be used. POST: POST is used to send data to server for … Read more

Serialization Java Interview Questions – Set 02

Does setting the serialVersionUID class field improve Java serialization performance? Declaring an explicit serialVersionUID field in your classes saves some CPU time only the first time the JVM process serializes a given Class. However the gain is not significant, In case when you have not declared the serialVersionUID its value is computed by JVM once … Read more

Core Java Interview Questions – Set 02

If a variable is declared as private, where may the variable be accessed A private variable may only be accessed within the class in which it is declared. Name the eight primitive Java types. The eight primitive types are byte, char, short, int, long, float, double, and boolean. Name three subclasses of the Component class Box.Filler, Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, or TextComponent. How are this and super used … Read more

Collections Java Interview Questions – Set 02

What is the Collections API? The Collections API is a set of classes and interfaces that support operations on collections of objects. What is an Iterator interface? The Iterator interface is used to step through the elements of a Collection. The Iterator is an interface, used to traverse through the elements of a Collection. It is not … Read more

Beans Java Interview Questions – Set 02

What are the four types of J2EE modules? Application client module Web module Enterprise JavaBeans module Resource adapter module How can I set a cookie in JSP?- response. setHeader(”Set-Cookie”, “cookie string”); To give the response-object to a bean, write a method setResponse (HttpServletResponse response) – to the bean, and in jsp-file:<% bean. setResponse (response); %> … Read more

Hibernate Java Interview Questions – Set 02

Explain about session interface This represents hibernate session which perform the manipulation on the database entities. Some of the activities performed by session interface are as follows they are managing the persistence state, fetching persisted ones and management of the transaction demarcation. What is Lazy Loading In Hibernate Lazy setting decides whether to load child objects … Read more

JSP Java Interview Questions – Set 02

What is JSP? JSP is a dynamic scripting capability for web pages that allows Java as well as a few special tags to be embedded into a web file (HTML/XML, etc). The suffix traditionally ends with .jsp to indicate to the web server that the file is a JSP files. JSP is a server side … Read more

Exception Handling Java Interview Questions – Set 02

What is immutable object in Java? Can you change values of a immutable object? A Java object is considered immutable when its state cannot change after it is created. Use of immutable objects is widely accepted as a sound strategy for creating simple, reliable code. Immutable objects are particularly useful in concurrent applications. Since they … Read more

Web Services Interview Questions – Set 02

What tools are used to test web services? The tools used to test web services are: SoapUI tool for testing SOAP and RESTful web services Poster for firefox browser Postman extension for Chrome Which language does UDDI use? The UDDI uses the language known as WSDL (Web Service Description Language). Explain different HTTP methods supported by RESTful web … Read more

Servlet Java Interview Questions – Set 02

How can I set a cookie in JSP?- response. setHeader(”Set-Cookie”, “cookie string”); To give the response-object to a bean, write a method setResponse (HttpServletResponse response) – to the bean, and in jsp-file:<% bean. setResponse (response); %> What is JSP? JSP is a dynamic scripting capability for web pages that allows Java as well as a … Read more