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

To make an object to begin executing as a separate thread, what method is used?

2 Answers  


What is the RMI and Socket?

0 Answers  


difference between HashMap, Hashset and hashTable?

2 Answers   HCL, Infotech,


What is a task?s priority?

1 Answers  


What are the benefits of detached objects?

0 Answers  






What is local interface. How values will be passed?

0 Answers  


In a multitiered application which tier is the browser in?

3 Answers   Adobe,


What are preemptive scheduling and time slicing and what is the difference between them?

1 Answers  


How to send a request to garbage collector?

3 Answers  


Explain the stub's and skeleton's functionality?

7 Answers  


whats is mean by tiles in struts

0 Answers   SolutionNET,


difference between applicationserver and webserver

2 Answers   SolutionNET,


Categories