Você está na página 1de 3

Java Interview Questions What is the difference between an Interface and an Abstract class?

What is the purpose of garbage collection in Java, and when is it used? Describe synchronization in respect to multithreading. Explain different way of using thread? What are pass by reference and passby value? What is HashMap and Map? Difference between HashMap and HashTable? Difference between Vector and ArrayList? Difference between Swing and Awt? What is the difference between a constructor and a method? What is an Iterator? State the significance of public, private, protected, default modifiers both sin gly and in combination and state the effect of package relationships on declared items qualified by these modifiers. What is an abstract class? What is static in java? What is final?

Java Collection Interview Questions What is the Collections API? What is the List interface? What is the Vector class? What is an Iterator interface? Which java.util classes and interfaces support event handling? What is the GregorianCalendar class? What is the Locale class? What is the SimpleTimeZone class?

What is the Map interface? What is the highest-level event class of the event-delegation model? What is the Collection interface? What is the Set interface? What is the typical use of Hashtable? I am trying to store an object using a key in a Hashtable. And some other object already exists in that location, then what will happen? The existing object wil l be overwritten? Or the new object will be stored elsewhere? What is the difference between the size and capacity of a Vector? Can a vector contain heterogenous objects? Struts Interview Questions What is Struts? What is Jakarta Struts Framework? What is ActionServlet? How you will make available any Message Resources Definitions file to the Struts Framework Environment? What is Action Class? What is ActionForm? What is Struts Validator Framework? Give the Details of XML files used in Validator Framework? How you will display validation fail errors on jsp page? How you will enable front-end validation based on the xml in validation.xml? How to get data from the velocity page in a action class? DB Interview Questions What is SQL? What is SELECT statement? How can you compare a part of the name rather than the entire name? What is the INSERT statement? How do you delete a record from a database? How could I get distinct entries from a table?

How to get the results of a Query sorted in any order? How can I find the total number of records in a table? What is GROUP BY? What is the difference among "dropping a table", "truncating a table" and "delet ing all records" from a table? What are the Large object types suported by Oracle? Difference between a "where" clause and a "having" clause ? What is the difference between a primary key and a unique key? What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors? What are triggers? How to invoke a trigger on demand? What is a join and explain different types of joins. What is a self join? Practical Questions To be asked in Interviews Listed questions are for Interviewer. candidate approaches to resolve these dea of how much grasp technically the j2ee , application servers, databases Its more of a discussion to analyze how a practical problems, it also will give an i candidate has on web technologies - java, ..

These questions dont have any particular answer. These are practical problems wh ich I have faced in web projects executed by my team. 1. How would one analyze and find solutions to HIGH CPU usage by a web applicati on? The CPU usage shoots close to 100% within 3 days of application server rest art, and once the CPU reaches close to 100%, the web application hangs? What cou ld be the probable causes? What would be line of approach to resolve this issue. ? Basically the candidate who answers this question, should try to reason out the issues which can shoot the CPU usage to 100%. The Interviewer should bascially look the approach and discuss to find a solutio n. I have asked this question very frequently and the answers give a very good feed back on the technology grasp of the candidate unlike theorotical questions which have one line answers. 2. How should a web application authenticate user id / passwords combinations? a) b) c) d) should the password be sent in clear text to the server for authentication ? should the password be hashed ? if hashed, how wud one authenicate the password at server? or any other mechanism?

3. Any approach to migrate passwords from an existing web application to migrate d web application. ?

Você também pode gostar