Java Interview Questions
Java Interview Questions
Written Questions:
1.
2.
3.
4.
5.
6.
7.
Technical Questions:
1. Tell me about your self
2. What is difference between abstarct and interface
3. What are the interfaces in Java
4. What is Exception and how many types of Exception are there in java
5. What is difference between Exception and Error
6. Can you give me some examples of Checked and Unchecked Exceptions
7. How to write your custom exception
8. What are the steps to create the connection in JDBC
9. What is the differences between Statement and PreparedStatement
10.How to avoid SQL injection
11.How many interfaces in JDBC
12.Where is the implementation of all methods of interfaces
13.Who implements methods of JDBC interfaces
14.What is Web Services
15.What is the life cycle of Servlet and JSF
16.Can I write constructers in Servlect
17.Who instantiate servlet and how?
18.Can I write java code in javascript
19.Is java code will run in javascript?
20.What is AOP in Spring framework
21.How may types of injection in spring
22.How bean get instantiated in Spring
23.What Inversion of Control in Spring
24.How BeanFactory get instantiated?
25.What is hibernate caching
26.What is Curser
27.What is trigger and how many types of trigger in PL/SQL
28.How to do impact analysis
29.Did you use any code review tools
30.What is Ant Builder
L&T(Selected)
1. Tell me about yourself.
2. Why you want to switch your company
3. OOPS Concept
4. Difference between Abstract and Interface
5. Which Java api overrides hashcode method
6. Difference between hashtable and hashmap
7. Difference between set and list
8. Draw collection framework api
9. What is singleton and write core same
10.Did you make any class is abstract in your project
11.What is covariant in java
12.What is wrapper
13.What is boxing and unboxing
14.Why string is immutable
15.Can class be immutable if yes then why, did you create any java class as
immutable class
16.What is life cycle of struts
17.What is life cycle of JSF
18.What is IOC
19.What is factory in spring
20.What is AOP
21.What is inverse in hibernate
22.Describe your current project
Tech Mahindra(Selected)
PNB Paribas(Selected)
1.
2.
3.
4.
5.
6.
7.
8. One scenario is that you have n numbers of diwali light bulbs how to
implement in java that one will be on and rest will be off, time duration
between two diwali light is 1 seconds.
9. How to design many to many is you have one EMP and DEPT tables in
which dept is common in both tables
10.
How to add constraints in a column if that column having some
duplicates records
11.
How to delete duplicates records in table.
PolariesFT
1. Write a query to delete duplicate records from table
2. Write a query to display manager name belonging to manager id,
employee can be manager.
3. What id delete and faade design pattern
4. What is singleton design pattern
5. What is observer and where to implement observer
6. What entity been
7. What is the attribute of transaction
8. How to manage 1000 clients to do complete transaction in 10 minutes
9. Write code to how ejb getting called
10.
What is architecture of project and explain about your project
11.
What is container manage transaction
12.
What is normalization
13.
How will you make validation for all request in struts
14.
What is index and how it works in database
15.
How many ejb objects getting created for 100 request
16.
What is servlet life cycle
17.
Can I parameterized constructor in servlet
18.
Can I call destroy method in service
19.
Can I call doPost method in doGet method
20.
What is use of servlet
21.
Can u pass parameter in jsp include action and how
22.
Suppose we will not write servlet and all servlet logic will in jsp
then happened
23.
What are the javascript objects
24.
How will you submit form using javascript
25.
If your page containing 4 form then how will you submit
according to your requirement.