prajal


{ City }
< Country > india
* Profession *
User No # 54978
Total Questions Posted # 2
Total Answers Posted # 3

Total Answers Posted for My Questions # 8
Total Views for My Questions # 15290

Users Marked my Answers as Correct # 21
Users Marked my Answers as Wrong # 2
Questions / { prajal }
Questions Answers Category Views Company eMail

What are the Abstract Classes provided by Java?

Oracle,

5 Core Java 8382

Why are inner classes required?

Oracle,

3 Core Java 6908




Answers / { prajal }

Question { Polaris, 36131 }

What is the difference between pageContext and page
implicit objects in jsp?


Answer

PageContext: This is used to access page attributes and
also to access all the namespaces associated with a JSP
page. It provides a single API to manage the various scoped
attributes.
PageContext also provides access to several page attributes
like including some static or dynamic resource.
The object PageContext is written:
Javax.servlet.jsp.pagecontext

Page: The Page object denotes the JSP page, used for calling
any instance of a Page's servlet. It has page scope. First
type cast the servlet before accessing any method of the
servlet through the page.

The Page object is written: Java.lang.Object

Is This Answer Correct ?    14 Yes 1 No

Question { Oracle, 8382 }

What are the Abstract Classes provided by Java?


Answer

java.lang.Number
java.awt.PrintGraphics
java.awt.Graphics

Is This Answer Correct ?    2 Yes 1 No


Question { 4951 }

what r callable statement and give their proper use


Answer

Callable statement (java.sql.CallableStatement) are used for
calling a Stored Procedure.

Syntax is as below-
//prepare a procedure call
String procedureCall="call testProcedure(:1,:2,:3)";
//prepare a callable statement

CallableStatement
cStmt=connectionObject.prepareCall(procedureCall);

// Set the Input Parameters to the procedure
cStmt.setInt(1, testID);
cStmt.setInt(2, testNumber);

// Register Output Parameters
cStmt.registerOutParameter(3, Types.VARCHAR);

// Execute the Callable Statement
cStmt.execute();

// Resulting Values from the Callable Statement is assigned
to the Message variable
String message = cStmt.getString(3);

Is This Answer Correct ?    5 Yes 0 No