Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java Interview Questions very very important

818207Nov 24 2010 — edited Nov 24 2010
Hi all,
I have a group of questions.If anyone have the answers please answer them all or answer whatever you know.

1. I have 10 servlets. I want to load only 3 of them. What should I do for this????

2. I have a JSP that prints Hello World. After first run I open the class file of the JSP by Decompiler and change the Hello World string to Hello India and save as class file. What will be the output Hello World or Hello India.

3. Can we make ArrayList class's methods synchronized.

4. can we use our method instead of execute() method in Action class of Struts.

5. Is it necessary to override doGet() or doPost() methods in a servlet.

6. How can we handle the connection exhausted in JDBC.

7. what are checked and unchecked exceptions

8. who calls the run() method in a thread.

9. what is hashCode() and equals() method.

10. In HashSet duplicate entry how can we check.

11. what is ServletConfig and what is ServletContext

12. Servlet is loaded per user request or loaded once.

13. what is join() method in thread.

14. We have a column that have only names, duplicate values and nulls also there. We want to save this in Collections and sort. What Collection class we must use.



Please give the answers of these questions as early as possible. This is of great help.

Thanks & Regards
Swarup Choudhury
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2010
Added on Nov 24 2010
8 comments
5,004 views