Вы находитесь на странице: 1из 5

1.

Client Requirements - In struts project, u need to change some line in


Struts-config.xml and then class files, but u should not restart the tomcat serv
er. Is it possible???
Yes it is possible
2. Nearly 500 users are using application, but server has been restarted. Client
req is session must not to be
closed at that time. Seesion has to be active for some more time. is it possible
?????
3. Difference between throwable, throw, throws
Throwable is an interface that the Exception class implements and an int
erface that all user defined class would implicitly implement to ensure that the
y have exception like behavior..
The throw keyword is used to explicitly throw an exception.
The throws keyword is used to declare what types of exceptions are throw
n by a method.
The Throwable class is the superclass of all errors and exceptions in Ja
va.
Example:
// This class is of type Throwable
class MyClass extends Throwable {
// The main method is declared to throw a MyClass Throwable object
public static void main(String[] args) throws MyClass {
// And let's throw a new instance of MyClass to see what happens.
throw new MyClass();
}
}
Of course, this code will be pretty useless:
Exception in thread "main" MyClass
at MyClass.main(MyClass.java:6)
The throw keyword denotes a statement that causes an exception to be ini
tiated. It takes the Exception object to be thrown as argument. The exception wi
ll be caught by an immediately encompassing try-catch construction or propagated
further up the calling hierarchy.
The throws keyword is a modifier of a method that designates that except
ions may come out of the mehtod, either by virtue of the method throwing the exc
eption itself or because it fails to catch such exceptions that a method it call
s may throw.

"throws" declares that your method is capable of throwing an exception.


"throw" actually does the work , of throwing the exception.
example :
public void doSomething() throws ApplicationException
{
try{
}
catch(Exception e){
// catch all excpetions n provide some meaningful message
throw ApplicationException("An error occurred while trying c
onnect to DB");
}
}
throw is used to throw an exception manually where as throws is used in
the case of checked exceptions to reintimate the compiler that we have handled t
he exception. so throws is to be used at the time of defining a method and also
at the time of calling that function which rises an checked exception.
throws:
Method capable of raising an exception but not handling the
same. i.e to say no Try Catch block is implemented in the
Method, to handle the exception.
The callers should create the Try Catch Block to safeguard
against the exception.
If the above is not followed it would result in Compilation
errors.
throw:
The method that raises the exception also handles the same
in its Catch block.
If unhandled the exception can also be handles by the
Callers Try Catch Block.
Hope this makes sense.
throws --> throws declare that it throws the exception to
the calling method.
throw --> it is surrounded by the try catch block actually
it does the work, of throwing the exception.

4. Difference between errors, Exception


An error is an irrecoverable condition occurring at runtime. Such as Ou
tOfMemory error.
These JVM errors and you can not repair them at runtime. While exceptio
ns are conditions that occur because of bad input etc.
e.g. FileNotFoundException will be thrown if the specified file does no
t exist.
Or a NullPointerException will take place if you try using a null refer
ence.
In most of the cases it is possible to recover from an exception (proba
bly by giving user a feedback for entering proper values etc.).

5. Import objects
1. Projects worked ON ?
2. Which Project u want to explain ?
3. Which screens u worked ON?
4. Choose a Screen and Explain technologies involved and narrate Flow ?
5. How to code Ajax in ur Screen? Why Ajax ?
6 Do u know about Stored Procedures and Triggers?
7. What all are the types of statements used in jdbc connection?
8. Explain lines of code, for creating a JDBC Connection ?
9. Why we go for Hibernate and explain Steps of Configuration?
10. Difference between interface and abstract class?
11. Explain Struts 1.x ?
12. How flow of control transfers from ActionServlet to struts-config.xml ?

1. Tell me about urself?


2. Tell me about ur company?
3. Tell me about ur projects u worked on?
4. Tell me the technologies involved in ur Projects.
5. Tell me a Project and their HighFunctionality Screens.
6. Ur role in that Project ?
7. Which application server do u use ?
8. explain the deployment processs of ur project?
9. Difference between Application Server and WebServer?
10. why u go for 10g when many DBs are available.

1) what is liquibasr e, dbunit explain?


2) google api to spreadsheet
3) hibernate performance tuning
4) servlet api in radaptive
5) what is the size of the cache
6) design patterns singleton factory pattern
7) " hello world " omit the first and last spaces without using trim method
8) " abb","Abb","abb" how compilesort this? how will you sort it with out bother
ing about the case sensitive?
9) how will yout integrate spring wih hibernate?
10) how will you integrate flex with java?
11) how will you exclude the lib path while creating a war file in maven?
12) what is aop, dependency injection?
13 ) scope for a bean in spring?
14) lazy in hibernate
15) how do you maintain transaction in hibernate?
16) auto boxing in java ?(in what version it is used)
Integer i = 5; correct? yes
Integer i = new Integer(5); correct? yes
17) how do you convert a Integer wrapper to a int primitive?
i.intValue()
18) If maven can do all the things which ant can do why is ant maven plugin?
19) what is tokenizing? explain string tokenizing in very detail
20) what is threadsafe?
21) why hibernate pojo objects need to be serialized?
22) how do you iterate a collection?
23) what is an action class , action form?
24) if many action mapping conifigurations are given in struts config will the p
erformance be affected? how will you overcome it?
25) how will you submit a form in struts?
26) explain the flow of doing a master screen?
27 where you used serialization in project?
28) how will you serialize a object? if serilazable a marker interface? what met
hod it has?
29) how many cfg file and hbm files in a project?
30) what are the types of joins?
31) explain something about you (technical) ?
32) how will you get the current date in sql?
33) how will you call native sql queries in hibernate?
34) struts validation
35) what is the difference between abstract and interface
36) can we extend an abstract class and implement an interface in a single class
file
37) what is getelementbyid in java script
38) how will you serialize an object
39) what is dao , dto
40) where do you see your self after 5 years?
41) why cts?

1.what is a servlet?
2.what is a web server?
3.where we ll place the war file in Tomcat?
4.what abt weblogic?
5.what is the life cycle of servlet?
6.when the destroy() will be called?
7.when the doGet() and doPost() methods will be used?
8.what is HttpServlet and GenericServlet?
9.what is JSP?
10.what are the differences between C++ and JAVA?
11.How can you say that C++ is not pure object oriented and JAVA is pure object
oriented?
12.what is byte code? And what is the extension of this file?
13.what is compiler and interpreter?
14.which type of language JAVA is? Whether it is compiled lang or interpreted la
ng?
15.what is overloading n overriding?
16.what is DBMS?
17.what are the types of DBMS?
18.which type of DBMS is Oracle?
19.is Oracle a DBMS or RDBMS or ORDBMS?
20.what is the difference between Join and Union ?
21.what is OSI?
22.what are the layers of OSI?

Вам также может понравиться