
- Forum
- Career Management
- Interview Questions
- java interview questions
java interview questions
This is a discussion on java interview questions within the Interview Questions forums, part of the Career Management category; HI , you did a great job providing all the interview questions and information about the various languages.Can you provide ...
-
java interview questions
HI ,
you did a great job providing all the interview questions and information about the various languages.Can you provide the answers for the fllowing questions
1.can a jsp extend a class if so syntax and what care needs to be taken
2.can a jsp implement an interface?
3.what is the error thrown when there are no connectiosn available
in the pool and how they are managed?
4.EJB query language and implementation of CMP
Ok Thanks
-
Re:java interview questions
DChowdary,
Pls find the answers for your questions below:-
1.Can a jsp extend a class if so syntax and what care needs to be taken
Yes,
Use JSP directives (enclosed within <%@ and %> ) to specify:
-Classes a servlet extends .
For example,
<%@ extends=\"Java class\" %>
The name of the Java class that the servlet extends. The class must be a valid class and does not have to be a servlet class. The scope of this directive is the JSP file.
2.Can a jsp implement an interface?
Yes,
Use JSP directives (enclosed within <%@ and %> ) to specify:
-Interfaces a servlet implements .
For example,
<%@ implements =\"Java interface\" %>
A comma-separated list of Java language interfaces that the generated servlet implements. You can use this directive more than once within a JSP file to implement different interfaces
3.What is the error thrown when there are no connections available in the pool and how they are managed?
When the pool starts, it creates the minimum number of connections. When a service requires a connection, it takes one from the pool. If there are no free connections, then the connection pool creates a new connection until the maximum is reached.
Clients can, however, close their connections while the connection pool is disabled; the connections are then returned to the pool and cannot be reserved by another client until the pool is enabled.
Refer the following link:
http://java.sun.com/developer/online...k/conpool.html
4.EJB query language and implementation of CMP
Refer the following links:
http://benmira.free.fr/en/j2ee/ejbql.htmhttp://benmira.free.fr/en/j2ee/entit...m#ch30lev1sec8
-
Re:java interview questions
ThanQ vaasu
-
09-12-2011, 08:07 AM #4
- Join Date
- Sep 2011
- Answers
- 1
how could i manage an object if i am switching from one web application to another. Plz help me if you know a proper solution...
Thanks in advance
-
Sponsored Ads

Reply With Quote





