Java J2EE Interview Questions
Questions Answers Views Company eMail

How many types of syncronization?

2 4147

What is race condition ?? (Threading concept) TCS 2 sept10

SparkTG, TCS,

3 6771

what is the difference b/w DispatchAction and LookUpDispatchAction?

Deloitte, iGate, Tech Mahindra,

1 5661

why we write public static void main (String args[]) in core java plz explain briefly??????????????????

HCL,

3 7189

shall we use any name for deployment descriptor of struts instead of struts-config.xml

Polaris,

3 7761

if i know the lenght of collection in hand, should I use Array or Arraylist? justify

iTrust,

1 3543

diffrence b\w println() and printf()

NIIT,

8 20802

if we give input as " hi how are you" then the output should be "uoy woh"...it should skip odd words in the input and should reverse even words from the end of string...can anyone help me to write this program in java

1 3397

What is weblogic unicasting and multicasting?

TCS,

4 18616

can we implement synchronization for handling multiple messages receieving through Mdb on message

IBM,

1 5137

How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?

IBM, Infosys, TCS,

6 18922

What is the use of collections in java? How it is implemented in real time applications?

2 11109

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?

Cap Gemini,

1 6364

1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))

1 5833

can i modify the data which are generated by the servlet

4 5229


Un-Answered Questions { Java J2EE }

Enlist few advantages of inheritance?

555


What is lambda programming?

470


What is a thread pool?

624


Is udp stateless?

562


What types of DataSource objects are specified in the Optional Package?

486






What does action do in struts?

504


How many decimal digits is 64 bit?

506


What software is needed for java programming?

428


What is the role of java swing?

481


What is the RMI and Socket?

603


What is the purpose of @doublerangefieldvalidator annotation?

538


What is garbage collector?

601


What is the difference between client and server database cursors?

579


What's the difference between int and integer in java?

513


there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.

1546