Exforsys

Free Training

java interview questions

This is a discussion on java interview questions within the Interview Questions forums, part of the Interviews and Job Listings category; HI , you did a great job providing all the interview questions and information about the various languages.Can you provide ...

Go Back   Exforsys > Career Management > Interviews and Job Listings > Interview Questions

Exforsys.com

  #1 (permalink)  
Old 05-19-2004, 07:13 PM
Junior Member
 
Join Date: May 2004
Posts: 8
dchowdary
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-19-2004, 09:08 PM
Senior Member
 
Join Date: Nov 2004
Posts: 132
Vasu
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-20-2004, 06:51 AM
Junior Member
 
Join Date: May 2004
Posts: 8
dchowdary
Re:java interview questions

ThanQ vaasu
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 09-01-2004 07:00 AM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 07-03-2004 08:27 PM
JAVA INTERVIEW QUESTIONS bala555 Interview Questions 2 06-11-2004 07:28 PM


All times are GMT -4. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.