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 is synchronization and why is it important?

547


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

574


Brief description about local interfaces?

630


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1785


Where can I find seam examples and documentation?

569






What modifiers may be used with an interface declaration?

561


When is the best time to validate input?

609


Is the infobus client side only?

613


Name the class that is used to bind the server object with RMI Registry?

1694


How is a java object message delivered to a non-java client?

575


How would you detect a keypress in a jcombobox?

678


Why won’t the jvm terminate when I close all the application windows?

754


what is Activation Instantinator?

1913


What is the form of storage space in java?

1744


Difference between hashmap and hashtable?

608