0% found this document useful (0 votes)
1K views2 pages

Java Developers Guide - Capgemini Interview Questions and Answers For Java 3-8 Year Experience

This document contains answers to common Java and web development interview questions. It discusses Java literals, garbage collection, differences between String objects and references, singleton classes, differences between JSP and Servlets, the Struts Validator framework, differences between Hibernate Session and SessionFactory, and what Hibernate Query Language (HQL) is. Key topics covered include object instantiation, memory management, MVC architecture, validation, caching, and querying data.

Uploaded by

Rohini Bauskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views2 pages

Java Developers Guide - Capgemini Interview Questions and Answers For Java 3-8 Year Experience

This document contains answers to common Java and web development interview questions. It discusses Java literals, garbage collection, differences between String objects and references, singleton classes, differences between JSP and Servlets, the Struts Validator framework, differences between Hibernate Session and SessionFactory, and what Hibernate Query Language (HQL) is. Key topics covered include object instantiation, memory management, MVC architecture, validation, caching, and querying data.

Uploaded by

Rohini Bauskar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

[Link]?

Ans:Giveyourbriefintroduction.
[Link]?
Ans:[Link],becarefulandgetreadyabout
thefunctionalitywhenyouaredescribingyourworkingmodule/[Link]
havedonethemajorpartandyoucanfacechallengesinfuture.
[Link]?
Ans:[Link]
[Link](int,short,long,float,double,boolean,char,[Link]
[Link].
longvar=20L//specifyLorlforlongliteral
intvar=20//Ifnotmentionedanycharacterthenitscanbeshortorint
charvar=A
floatvar=10.44f//specifyforFforfloatliteral
doublevar=10.44
booleanvar=true//orfalse

[Link]?
Ans:[Link]
[Link]
[Link],it
[Link]().
[Link]=newstring()andstrings="HiDude"?
Ans:[Link].
Strings=newString()//[Link].
Strings=HiDude//Thisstatementdonotcreateobject,itscreatingreferenceanditsstoringinStringConstant
[Link].
[Link]?whereisitused?
Ans:ViewAnswer
[Link]?
Ans:[Link]/populatingthedataon
[Link](V).But,Servletsareusedtohandle
[Link](C).
[Link]()[Link]()?
Ans:BotharetakingStringparameter,[Link]()willdispatchtherequestinsidethe
[Link]()[Link]
usingabsolutepathfordispatchingthenbotharesimilar.
[Link]?
Ans:[Link]
[Link].

Conversion=>Compilation=>Execution
[Link]?
Ans:ActionServletprovidesthecontrollerinstrutsapplicationwithMVC(ModelViewController)Model2.
[Link]
doGet(),doPost(),destroy(),etc.

[Link]?
Ans:[Link]
[Link]
validation,[Link]()methodwhichwecanimplementfor
validatingtheformdata.
[Link]?
Ans:[Link]
[Link]
[Link],[Link]
beingcreatedbyusingSessionFactoryobject.Sessioniscalled1stlevelcache.
[Link]?
Ans:[Link]
associationandjoinsforeffectiveentityrelationship.

You might also like