Sunday 4 December 2011

Top Ten most viewed questions

 WHY THERE IS NO MULTIPLE INHERITENSE IN JAVA

 

if multiple inheritence exists then the object of one class must get the properties from more than one  objects 

if other two objects contains same function with respect to name , parameters and return type 

then the  JVM  cannot understand this function belongs to which object from

getting the properties then it causes to  serious problem 

this is the reson y  multiple inheritence are not exist in java 

what is the use of destroy method and its return type in the context of JAVA Servlet


 destroy method is used cleanup resources or you can say deallocation of resources 


What is meant by mutating table error in Oracle

 

 Mutating table error is the a condition when a trigger is trying to update a row it is currently using.

To fix this issue use views or temp tables so that selection can be done form one and update can be done on other.




What is declaration scripting element in JSP pages

 

A declartion scripting element in JSP page

is used to declare varables or methods in scripting language

<body>

<%! int abc = 0; %>

</body>

 

Can we call a stored procedure from another stored procedure in Oracle

 

Yes . Use exec Procedure name to call a procedure from another procedure.

 

 

What method is called each time a servlet is invoked

 

service() method is called each time a servlet is invoked

 

What is a package in java

 

A package is a collection of classes and interfaces which provides access protection and name space management.

 

What is Oracle Database

 

Oracle is a program which maintains data for us and decides where it should go on the hard drive.In other words Oracle is a relational Database i.e. a collection of Data.

 

what is the use of getServletConfig method and its return type in the context of JAVA Servlet

 
getServletInfo() is used to get  used to get servletConfig object

its return type is ServletConfig object

what is the use of service method and its return type in the context of JAVA Servlet.

 

service(ServletRequest,ServletResponse) method is invoked each time a request 

for the servlet is made 

its return type is void

 

   

 



No comments:

Post a Comment