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

Can you write Java code for declaration of multiple inheritance in Java ?

6 Answers   Kingshir, Oracle,


list the types of dialodg

1 Answers   Wipro,


Write a program to show synchronization?

0 Answers  


what are the advantages of JTA over JTS?

0 Answers  


Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan)

2 Answers   Wipro,






hi, All are saying that now software field position is not good and in 5-10yrs total software field ll be saturated . is it true? i am unable decide ii continue in this field or not please tell me?

19 Answers  


What is the difference between ear, jar and war file?

0 Answers  


What is the infobus?

0 Answers  


What is scalable, portability in the view of J2EE?

0 Answers  


Suppose there are 3 combo box. SELECT COUNTRY SELECT STATE SELECT CITY if i select any country from country conutrylistbox values in the state will get automatically inserted with database values>> THEN on selection of state city will be inserted in city combo box If you can help then please Help me...

2 Answers   HCL,


Where can I find seam examples and documentation?

0 Answers  


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

0 Answers  


Categories