The main difference::The differences are
Category:Java Interview Questions
collection of interview question , preparations
Tuesday, November 29, 2011
What is a string Handling? How to use it? what is difference b/w Event handling?
font
Category:Java Interview Questions
Category:Java Interview Questions
If my java based application is hanging once in a while. Where would you start looking at the problem, what changes can you do?
font
Category:Java Interview Questions
Category:Java Interview Questions
When two entity beans are said to be identical?Which method is used to compare identical or not?
Two Entity Beans are said to be Identical,if they have the same home inteface and their primary keys are the same.To test for this ,you must use the component inteface&
Category:EJB Interview Questions
Category:EJB Interview Questions
I have to view(in a JSP Page)the rows in a
Firstly send a request to server and calculate how many row are exists for executed query and store it into count.:get the data into a list and disply in jsp by using code like this using hyperlink use logic as follows
Category:JSP Interview Questions
Category:JSP Interview Questions
What packages are used by JDBC?
java.sql.BatchUpdatException Provides information about errors that occurred during batch operations
Category:JDBC Interview Questions
Category:JDBC Interview Questions
What is meant by Serialization and Externalization? Serialization is a Marker interface,so what is the use of WriteObject() anf ReadObject(), Where it is actually used? Give me some real time examples?
Marker Interface is used by java runtime engine (JVM) to identify the class for special processing.
Category:EJB Interview Questions
Category:EJB Interview Questions
What Class.forName will do while loading drivers?
Dynamic loading of Java classes at runtime provides tremendous flexibility in the development of enterprise systems. It provides for the basis of "application servers", and allows even simpler, lighter-weight systems to accomplish some of the same ends. Within Java, dynamic loading is typically achieved by calling the forName method on the class java.lang.Class; however, when Class.forName is naively called from within an Extension, strange errors can occur. This paper describes why those errors occur, and how Java2 provides two facilities, one a modification to the forName syntax, and the other, called the "Thread context ClassLoader", to avoid them. This paper assumes you are passingly familiar with Java Reflection, and have at least a general idea of what Java ClassLoaders are and how they are used within Java code. :the class.forName creates a instance of the driver and registers it with DriverManager Class. While the driver is loaded it creates a connection to the db.:Class.forName is used for load the any class into JVM&
Category:JDBC Interview Questions
Category:JDBC Interview Questions
What are the two major components of JDBC?
Two major components of JDBC are Connection Pooling and Data Sources.
Category:JDBC Interview Questions
Category:JDBC Interview Questions
What are the common tasks of JDBC?
import java.sql.*;: JDBC is a API its communicate with relational Databases.
Category:JDBC Interview Questions
Category:JDBC Interview Questions
What are batch updates
Batch Update facility allows multiple update operations to be submitted to a database for processing at once. Using batch updates will improve the performance.
Category:JDBC Interview Questions
Category:JDBC Interview Questions
How to make application thread-safe ?
You should use the word synchronized to mark the critical section of code. You may also use other methods of thread synchronization (see wait(), notify(), notifyAll() etc.
Category:Java Interview Questions
Category:Java Interview Questions
How to call a Stored Procedure from JDBC?
Stored Procedures can be called in java by using the prepareCall() method which returns a CallableStatement object.:CallableStatement cs=con.prepareCall (?{call SHOW_SUPPLIERS}?);:StoredProcedure are the group of the sql statements and perform as a logical unit .
Category:JDBC Interview Questions
Category:JDBC Interview Questions
How can you retrieve data from the ResultSet?
Statement stmt = conn.createStatement(); :Connection con=null;:ResultSet is like a table containing data. Initally the cursor is before the first line.
Category:JDBC Interview Questions
Category:JDBC Interview Questions
Write the JSP command which includes sub_page.jsp and passing in
<jsp:include page ="sub_page.jsp">
Category:JSP Interview Questions
Category:JSP Interview Questions
Write the Java code to declare any constant (say gravitational constant) and to get its value.
Class ABC
Category:Java Interview Questions
Category:Java Interview Questions
Write code of any Action Class?
Here is the code of Action Class that returns the ActionForward object.:import javax.servlet.http.HttpServletRequest;
Category:Struts Interview Questions
Category:Struts Interview Questions
Write a simple bean program?
Write the SimpleBean code. Put it in a file named SimpleBean.java, in the directory of your choice. Here&
Category:Java Beans Interview Questions
Category:Java Beans Interview Questions
Write a java standalone program / method to take out all the special
class avoisSpecialChar:String sSENTENCE ="?This!is^a$t*e)s|t?";
Category:Java Interview Questions
Category:Java Interview Questions
Write a basic structure of an EJB session bean class.
//import statements://import statements
Category:EJB Interview Questions
Category:EJB Interview Questions
With EJB 1.1 specs, why is unsetSessionContext() not provided in Session Beans, like unsetEntityContext()
[Quote] ejbRemove() is called for session beans every time the container destroyes the bean. So you can use this method to do the stuff you typically would do in unsetEntityContext(). For entity beans ejbRemove() is only called if the user explicitly deletes the bean. I think that is the reason why the engineers at SUN invented the unsetEntityContext() for this kind of bean. [Quote]
Category:EJB Interview Questions
Category:EJB Interview Questions
Without using entity beans can we do database transactions?
Without using entity beans we can do database transactions through Springs .Spring can be used to configure declarative transaction management, remote access to your logic using RMI or web services, mailing facilities and various options in persisting your data to a database
Category:EJB Interview Questions
Category:EJB Interview Questions
Without home and remote interfaces cant we implement ejb?
Was just reading about EJB 3.0. I suppose with EJB 3.0, Home interface is absolutely gone and implementing Business Interface is not mandatory. All enterprise beans in EJB 3.0 are just POJO (Plain Old Java Object) with appropriate annotations.
Category:EJB Interview Questions
Category:EJB Interview Questions
Will the Struts tags support other markup languages such as WML ?
Struts itself is markup neutral. The original Struts taglibs are only one example of how presentation layer components can access the framework. The framework objects are exposed through the standard application, session, and request contexts, where any Java component in the application can make use of them.
Category:Struts Interview Questions
Category:Struts Interview Questions
Will the general public have access to the InfoBus API&
39;s?
Category:Java Beans Interview Questions
Category:Java Beans Interview Questions
Subscribe to:
Posts (Atom)