Java J2EE Interview Questions
Questions Answers Views Company eMail

How many types of syncronization?

2 4170

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

SparkTG, TCS,

3 6796

what is the difference b/w DispatchAction and LookUpDispatchAction?

Deloitte, iGate, Tech Mahindra,

1 5684

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

HCL,

3 7230

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

Polaris,

3 7812

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

iTrust,

1 3567

diffrence b\w println() and printf()

NIIT,

8 20864

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 3430

What is weblogic unicasting and multicasting?

TCS,

4 18654

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

IBM,

1 5168

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 18996

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

2 11136

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 6392

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 5857

can i modify the data which are generated by the servlet

4 5277


Un-Answered Questions { Java J2EE }

What access modifiers can be used for methods?

551


What is substring in java?

608


How many struts config file in a struts application?

516


What are the important topics in spring?

152


What is mdb in jms?

473






Which textcomponent method is used to set a textcomponent to the read-only state?

624


Can keyword be used as identifier?

540


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2522


How can you use a servlet to generate a plain text instead of html?

581


What is the difference between stringbuffer and stringbuilder class?

560


State the differences between applicationcontext and beanfactory in spring?

155


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

529


Which is latest technology in java?

478


how to I collect a single log statement as alert as a mail when the object on which log target is enables goes down or comes up?

450


Can we rethrow the same exception from catch handler?

554