You are on page 1of 3

Patni

1. Can we call on action class from another action class?


2. How to validate your application?
3. What is the struts application flow?
4. What is the prototype of execute(?
!. "s it compulsory to put validate method in #ction$orm?
%. How to handle exceptions in struts application?
&. 'xplain exception hierarchy?
(. 'xplain collection framewor)?
*. What is the prototype of #ction$orm+s validate(?
1,. Why we use -oo)up.ispatch#ction? Where we use?
11. How can we populate #ction$orm class?
12. What is synchroni/ation ? why to use ? where to use?
13. What are the life cycle methods for 0sp?
14. Why we use 12ean3write4?
1!. .ifferences in the versions 1.4 and 1.!?
1%. What are thread states?
1&. What are main differences 2etween a2stract classes 5 interfaces?
1(. Which collection o20ect preserves insertion order 5 sortin6?
1*. .ifferences 2etween #rray-ist 5 7ector?
2,. How can we add8 remove collection while iteratin6?
21. How process your wor)? (i.e.9 how to start your wor) 6ettin6 documents from C:9
code Chec);ut and Chec)"<
22. =o whom you will report your wor)?
23. How to identify Classses it+s activities?(i.e.9 understandin6 class dia6rams and activity
dia6rams
=C>
1. How can we initiali/e 0sp implicit o20ects?
2. What happens if we call destroy( in init(?
3. Can we overload all ?>@ lifecycle methods?
4. What are the layers of your application?
!. .ifference 2etween yield( and 0oin(?
@ersistent
1. What is the #rray-ist si/e? How many o20ects we can store in #rray-ist?
2. .ifference 2etween #rray-ist 5 -in)ed-ist? ?ustify the advanta6es and dis advanta6es
of one from another?
3. 'xplain Collection #@"?
4. How to iterate Collection 5 Aap o20ects?
!. .ifference 2etween Compara2le 5 Comparator interfaces?
%. How you ma)e your own sortin6 order usin6 compara2le?
&. .ifference 2etween compare( 5 eBuals( of Comparator interface?
(. Which collection o20ects to store o20ects
C <o null insertion
C <o duplication
C $ollow order
*. .escri2e #2straction 5 'ncapsulation?
1,. How many ways to instantiate a class dynamically?
11. Can we access composite o20ect 2y usin6 clone(? What is the access level for cloned
o20ect?
12. How to ma)e a class as thread safe?
13. .ifference 2etween >leep( 5 Wait(?
14. How threads will share instance varia2les?
1!. How to ma)e varia2le as threadsafe for data inconsistency pro2lems?
1%. what is usa6e of volatile )eyword?it+s use?
1&. What is >eriali/ation ? where to implement it and why?
1(. How many ways we can ma)e varia2les as not seriali/a2le?
1*. Write small code how to ma)e a seriali/ed o20ect?
2,. What are factory methods?
21. What are methods in ;20ect Class? 'xplain them?
22. What is the difference 2etween DE E+ operator and eBuals( in it+s comparison?
23. How to handle >ystem'xceptions9 'rrors and <ormal'xceptions?
24. What are types of drivers? Which one is preffered and why?
2!. 'xplain >tatements of ?.FC?
2%. Code to call functions in pl8sBl from 0ava?
2&. Code for connections and iterate results in ?.FC?
2(. how many ways to maintain pa6ination? #nd which is preferred? How to pa6inate at
?.FC level?
2*. .ifferences 2etween :esult>et and :ow>et?
3,. >et and :esult>et 2oth are set interfaces. What is difference in iteratin6 them?
31. What are >ervletConfi6 and >ervletContext?
32. What is difference 2etween parameters 5 attri2utes?
33. .ifference 2etween forward 5 redirect?
34. How to mana6e sessions and which is prefera2le? (i.e.9 >ession=rac)in6 Aechanisms
3!. .ifference 2etween doGet( and do@ost(?
3%. How to preCinitiali/e ?sp pa6e?
3&. Why we usin6 framewor)s for application development?
3(. .ifference 2etween Hashta2le and HashAap?
3*. How to sort Aap collection o20ect?"f sort which 2asis it will 2e sorted 9 the o20ects are
hetero6eneous?
4,. What type exceptions8errors may occur for recursive function calls? How to resolve
them?
41. How to handle H ;ut;fAemory'rrorI ?
42. Why we use static 2loc)s over constructors?
43. What is =hread-ocal? Why we use?
44. What is overloadin6 5 overridin6? Why from 1.! covariant return types allowed for
overridin6?
4!. .ifferences 2etween >et 5 -ist?
4%. "f store elements in set 3
C seto20.add(new >tudent(1,J
C seto20.add(new >tudent(1,J
C seto20.add(new >tudent(1,J li)e this what happens?
4&. 'xplain a2out Calla2le interface?
4(. How to ma)e a class not to su2class?
4*. .efine Carte6ion ?oin?
!,. .efine ?oin? "t+s types?
!1. How can " ma)e a user defined exception class can only throw Knchec)ed exceptions?
!2. How will you improve performance of application?
!3. What is Aemory-ea)? How to resolve them?
Cross Country "nfotech
1. What is ;20ect ;rientation? Where you do that?
2. ?ava is platform independent lan6ua6e. Where it provides its nature in ?:' or ?7A?
3. Can we instantiate a2stract class? What is the use of writin6 Constructor in a2stract
class?
4. Can you descri2e oops features? With examples?
!. Why we 6o for Hi2ernate?
%. How to ma)e connections for ?.FC?
C=>
1. What is hashin6?
2. Code to iterate Aap collection o20ect?
3. Write recursive lo6ic for factorial?
4. What is the deployment descriptor for struts application?
!. Why we 6o for Hi2ernate?
%. What are the different levels of Caches in Hi2ernate?
&. What is the use of .ispatch#ction Class?
(. How can a standalone component communicate with we2 component?
*. How to write connections for ?.FC?
1,. .ifference 2etween >ervletContext 5 >ervletConfi6?
11. "f we ma)e ?sp pa6e as threadsafe9 how can we improve its performance?
12. What are the ?sp implicit o20ects? Can we initiali/e them?
13. What is -oad$actory method?
14. Why we call #ction>ervlet as $rontController?
1!. What are =ypes of ?oins?
1%. What is the process of normali/ation?
1&. How can we ma)e #ction class as sin6le thread executa2le? What are ways to achieve?
1(. What is the use of finali/e( ? which way prefera2le to chan6e the o20ect status?

You might also like