Interview questions
JAVA interview questions – page 9
2,804 questions. Tap “Show answer” to check yourself.
-
How can we refresh the servlet for every 2 minutes automatically?
-
Why do I have to reaccess the database for Array, Blob, and Clob data?
-
What happens if we execute the program?class Return{int display(){try{return 1;}finally{return 2;}}public static void main(String args[]){Return r=new Return();r.display();}}
-
How do I include static files within a JSP page?
-
How do I start debugging problems related to the JDBC API?
-
What is the disadvantage of threads?
-
How do I prevent the output of my JSP or Servlet pages from being cached by the browser?
-
How do you prevent the Creation of a Session in a JSP Page and why?
-
If I use the JDBC API, do I have to use ODBC underneath?
-
How do I check in my code whether a maximum limit of database connections have been reached?
-
What causes the "No suitable driver" error?
-
If my session bean with single method insert record into 2 entity beans, how can I know that the process is done in same transaction (the attributes for these beans are Required)
-
Does stateless Session bean create() method contain any parameters?
-
What is the difference between optimistic locking and pessim
-
How is SAP JCo different from SAP .NET Connector?
-
What are the licensing terms for using SAP JCo or SAP Java IDoc Class Library?
-
What is pure servlet?
-
What is the JDBC syntax for using a literal or variable in a standard Statement?
-
What is garbage collection? Can it be forced?
-
How to sort String, for example: abced. to change to abcde ?
-
How do I use a scriptlet to initialize a newly instantiated bean?
-
How do I create a database connection?
-
What is JSP directive ?
-
What is JSP element ?
-
Which type of JDBC driver is the fastest one?
-
What is Anonymous class,Singleton Class and Assertions?
-
Is there a way to get the original exception object from inside a nested or wrapped Exception (for example an EJBException or RemoteException)
-
Is a class a subclass of itself?
-
What driver should I use for scalable Oracle JDBC applications?
-
How can I tell if my JDBC driver normalizes java.sql.Date and java.sql.Time objects?