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?



1) what is synchronization? 2)write a program to show synchronization ? 3) what is orm? 4) what i..

Answer / 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

More Advanced Java Interview Questions

What are the different approaches to represent an inheritance hierarchy?

0 Answers  


How to deploy Jar, War files in J2EE?

0 Answers   HCL,


What is permgen or permanent generation?

0 Answers  


What is a tasks priority and how is it used in scheduling?

0 Answers  


difference. between List and Set?

2 Answers   Campus Interaction, HCL, Infotech,






What are the difference between RMI and CORBA?

0 Answers  


Is multiple try block is possible in single java Application......

3 Answers  


How many requests can a server fetch at a time?

1 Answers  


Is there a guarantee of uniqueness for entity beans?

0 Answers  


How are the elements of a borderlayout organized?

0 Answers  


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

0 Answers  


What is serialization and de-serialization ?

5 Answers  


Categories