Top posts
-
Java/J2EE interview questions: – Differences between State and Strategy pattern?
This is one of the most asked JAVA/J2EE interview questions. So one can differentiate this design pattern and answer this as follows: - Strategy State Family of algorithms is interchangeable which means that every algorithm does the same thing but in...
-
JAVA / J2EE interview question - Explain types of resultsets and show difference between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE and How to Make Updates to Updatable Result Sets?
Types of resultsets TYPE_FORWARD_ONLY TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE How can move the cursor in scrollable result sets? Two arguments are generally passed for scrollable result sets The first argument indicates the type of ResultSet...
-
21 important Java/J2EE interview questions
21 important Java/J2EE interview questions: - This following part will cover the most asked Java/J2EE interview questions during Java/J2EE interview. So have a look on the same and do revise it when ever you go for the Java/J2EE interview questions interview....
-
Java/J2EE interview questions: – Is using StringBuffer always yields better performance than concatenation using +?
No, String Buffer need not yield a good performance over String concatenation using +. The type of concatenation plays a major role in deciding performance. If the concatenation can be completely resolved at coimpile time then String concatenation using...
-
Java interview questions: - Major difference between Servlet and Restfull web service?
Servlets are API which is simple and provides capabilities to write server side components. Rest provides higher level support for writing services which are denoted by using the concept of resource which represents a concept to be addressed while representation...
-
Java/J2EE interview questions: - How to apply a threading pool in Java/J2EE?
While facing Java/J2EE interview questions you may come across this question by the interviewer. So you can your start with the answer as follows. public class ThreadPool implements ThreadPoolInt. This class is an generic implementation of a thread pool,...
-
Java interview questions: - Explain JDBC and steps included in the JDBC connection.
A widely asked Java interview questions in most of the Java interview. So one can start the answer as follows: - Definition: - JDBC is a set of Java API for executing SQL statements. This API consists of a set of classes and interfaces to enable programs...
-
Java interview questions: - 16 most asked important questions on Input and Output (I/O).
Following are the sets of 16 most asked Java interview questions by the interviewer during the interview. What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? What is the purpose of the File...
-
Java interview questions: - 14 important questions asked on String Handling?
During interview following are Java interview questions which is asked by the interviewer. So do prepare for the interview on this 14 important questions: - Is String a primitive data type in Java? What is the difference between String and String Buffer?...
-
Java/Struts interview questions: - Diffrent types of Action classes in Struts?
One of the most likely questions asked in Java/Struts interview questions. So set your answers accordingly as mentioned below. ForwardAction: to do the “forward-only” and allow you to access the specified JSP page directly without going through controller....
-
Java interview questions: - How to configure tag libraries in Struts 1.xx version?
Following are the steps to configure tag libraries in Struts 1.xx version. Manual configuration: Used in Struts version less than or equal 1.1 Step 1: Download struts-bean.tld, struts-html.tld, struts-logic.tld and struts-tiles.tld and put the same in...
-
Java Interviews questions: -How can you views and explain its type?
A view can be thought of as either a virtual table or a stored query is a database object that is a logical representation of a table Views are mainly classified as Simple view: is created by selecting only one table does not contains functions. can perform...
-
Java Interview Questions: - 25 Basics interview questions on Java?
What if the main method is declared as private? What if the static modifier is removed from the signature of the main method? Can we define private and protected modifiers for variables in interfaces? Can there be an abstract class with no abstract methods...
-
Java interview questions: – 20 Basic Interview questions on Java? Part: -3.
What is Upper bounded wildcards in generics? What is JAR file? What are different types of inner classes? Can we declare an anonymous class as both extending a class and implementing an interface? What is the difference between a static and a non-static...
-
Java interview questions: - How will you explain different types of rowset in java 5?
This is one of the typical Java interview questions asked by the interviewer during the interview session. So one can proceed answering it as follows: - JdbcRowSet: A wrapper around a ResultSet object that makes it possible to use the result set as a...
-
Java/J2EE Design Pattern Interview Questions: – 20 Basics interview questions on Java/J2EE Design Patterns?
We are putting forward 20 basic Java/J2EE design pattern Interview questions. Hope every one benefits. Normally the Java/J2EE design pattern interviewer starts with... Explain how J2EE design patterns are classified? What is Front Controller pattern?...
-
Java interview questions: - Why is HTTP protocol known as a stateless protocol?
A protocol is stateless if it can remember difference between one client request and the other. HTTP is a stateless protocol because each request is executed independently without any knowledge of the requests that came before it. Figure: - HTTP Protocol...
-
Java/Servlets interview questions: -How will you explain the concept of SSI(Server Side Includes)?
Server Side Includes (SSI) are commands and directives placed in Web pages that are evaluated by the Web server when the Web page is being served. SSI are not supported by all web servers. So before using SSI read the web server documentation for the...
-
Java Training: -Explain JDBC (Java Database Connectivity) and its different section?
JAVA interacts with database using a common database application programming interface called as JDBC. JDBC allows a developer to write applications that is database independent. So the developer will be interacting with JDBC API rather than getting in...
-
Java Training: -Explain Service Loader in Java?
What is Service loader in Java? Service Loader is a new class added in Java 1.6 and it provides good means of developing loosely coupled application. It allows us to link an interface to a particular implementation at run time based on configuration thus...
-
Java Training: - Can you explain Page directives?
Page directive is used to define page attributes the JSP file. Below is a sample of the same:- To summarize some of the important page attributes:- Import: - Comma separated list of packages or classes, just like import statements in usual Java code....
-
Java Training: - Can you explain the four essential properties of a transaction?
A transaction is proper if it fulfils ACID properties. These four properties are as below:- Atomicity: - This rule states if one part of the transaction fails then the entire transaction should fail. Consistency: - This rule states that only valid data...
-
Java Training: - Mention different types of resultset?
“ResultSet” is an object that contains the results of SQL query. That means it contains the rows that satisfy the conditions of the query. There are three basic types of resultsets:- Forward-only results set These types of resultset are non-scrollable...
-
Java Training: -Mention Bootstrap, Extension and System Class loader?
There three types of class loaders:- Bootstrap Class loader also called as primordial class loader. Extension Class loader. System Class loader. Let’s now try to get the fundamentals of these class loaders. Bootstrap Class loader Bootstrap class loader...
-
Java interview questions: - Can you explain Native Interface in JAVA?
JNI is a mechanism by which you can invoke method written in native language like C and C++. Native languages allow you to use a platform specific feature which is not in control of java language. For instance if you want java to interact directly with...