1) what is synchronization?
2)write a program to show synchronization ?
3) what is orm?
4) what is getTemplete method and hw u use it?
5)write a singleton program ?
6) what is IOC concept & explain it?
7) methods of spring?
8)explain spring framework?
9)what are the oops concept?
10)what r the diff types of exception?
11)what is AOP(assepct oriented programing)?
12)jsp life cycle?
13)servlet life cycle?
14)how to u catch ur exception when executing a query in
hibernate?
15)write javascript function?
16)write a querry to join two tables?
17)wap to show inheritance and use of interface?
18)explain the project?
19)in spring bean class uses singleton or prototype?
20)Explain prototype?

Answer Posted / faraz

1) what is synchronization?
Ans : When multiple threads working,Synchronization is to lock a method for a particular object.
2)write a program to show synchronization ?
Ans : public someClass{
public synchronised methodA(){
//write your code
}
}
3) what is orm?
Ans : Object Relational Mapping ,its a tool for transaction management that needs to be integrated with Spring,Struts etc.Eg : Hibernate,iBatis,JDO etc
4) what is getTemplete method and hw u use it?
5)write a singleton program ?
Ans : Having single instance through out the application.eg.: Loggers
6) what is IOC concept & explain it?
Ans : Injecting dependencies to object itself instead of depending on container.
7) methods of spring?
Ans : Didn't get your question..!!
8)explain spring framework?
Ans : Spring is lightweight,Inversion controlled,Aspect oriented ,Container framework.
9)what are the oops concept?
Ans : Inhertitance,Encapsulation,Polymorphism,Data Abstraction
10)what r the diff types of exception?
Ans : Unchecked and Checked exceptions
11)what is AOP(assepct oriented programing)?
Ans : Separating your business logic with other functionalit
y such as services,Loggers etc,Making classess more cohesive.
12)jsp life cycle?
Ans : jspinit(),_jspService(),jspdestroy()
13)servlet life cycle?
Ans : init(),service(),destroy()
14)how to u catch ur exception when executing a query in
hibernate?
Ans : DOnt know hibernate :P
15)write javascript function?
function myJavascript(){
//your code :)
}
16)write a querry to join two tables?
Ans : select * from emp_personal_details t,emp_professinal_details y
where t.emp_id = y.emp_id
17)wap to show inheritance and use of interface?
Ans : hmm..
18)explain the project? Ans : hmm..
19)in spring bean class uses singleton or prototype?
Ans : By Default spring uses singleton
or mention singleton="true" for singleton else false for prototype inside bean tag.
20)Explain prototype?
Ans : Having multiple instances or having clones

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What classes of exceptions may be caught by a catch clause?

542


Where can I find seam examples and documentation?

558


Why does the option tag render selected=selected instead of just selected?

664


Have you used threads in Servelet?

1924


Difference between loadclass and class.forname?

583






Why a client should be multithreading? Explain.

583


How would you reatach detached objects to a session when the same object has already been loaded into the session?

667


Why are some of the class and element names counter-intuitive?

561


what is the use of State Factories?

1898


Can I import same package/class twice? Will the jvm load the package twice at runtime?

637


Explain ioc concept?

614


Why is string immutable in java?

570


What are externizable interface?

569


Write a singleton program?

559


Which class is the immediate superclass of the menucomponent class?

611