Quick Reference Before Appearing For Java Interview
Quick Reference Before Appearing For Java Interview
JSP/Servlets
1. Jsp life cycle and translation.
2. Write a program to delete cookies from JSP.
3. Where HTML code goes in JSP compilation.
4. Difference between Dispatcher and send redirect.
5. How to manage the sessions in JSP.
6. How to declare the errorpage in JSP.
7. How servlets work (internally)
8. Give details about the servlet initialization part.
REST Webservices
1. What are restful web services, explain how you will hit the web
service with an example. What are the APIs it supports?
2. How will you call a POST web service with the content? Which tool
have you used to post the content?
3. Have you called a restful web service in the web UI. Will it support
calling restful web services? Why?
4. Why REST type architecture is used? - Advantages of REST
5. What are the REST methods?
6. What ORM tool is used?
7. Explain how the deployment of the Services are done.
8. How to implement pagination in the REST Web service layer?
9. What is the difference between using PUT and POST?
10.How to define a RESTful application ?
11.What are different types of webservices ?
12.Difference b/w PUT and POST method? Which is idempotent? Can
both be used for same purpose?
13.Why are we using @PutMapping and @PostMapping in Rest?
14.What are the different REST Api levels?
15.What's the difference between SOAP and REST?
16.What's the REST level we are using?
Data Structures
1. What is the difference between O(1), O(N), O(n^2), data structures
with examples?
2. Which data structure used for collections(LinkedList, HashMap)
behind and explain?
3. What is o(log n) data structure?
4. Difference between array and ArrayList and LinkedList?
5. Write a customized arraylist.
6. Sort a third party object in an arraylist.
7. Why do we need to use linked list if we can use array list?
8. Design a customized map.
9. Design a customized Linked list.
10.Linked list traversing logic.
11.How to clone a linked list with data?
12.How do you find out similar elements from two linked list.
13.How to find a merge node in a linked list?
14.Write a java program for circular LinkedList implementation?
15.What are the different data structures.
Enumeration ;BitSet; Vector; Stack; Dictionary; Hashtable;
Properties
16.How is Binary Search implemented?
17.How do you find a loop in linked list and remove the same.
18.How to reverse a linked list?
19.Cloning of doubly linkedlist, where the next_pointer holds a
random value.
20.Write binary tree and explain binary search tree and its
complexity.
21.Write a program to implement a stack.