Interview questions - 24-06-18

Verizon

1. Interface uses
2. without Interface also we can do but why interfaces are using
3. array vs arraylist
4. polymorphism use
5.
ArrayList al=new ArrayList();
al.add(10);
al.add(20);
al.add(30);
al.add(40);

for(int i=0;i <=al.size;i++){
al.remove(30);
sysout(al)
}

o/p ?

6. how many ways to create object
7. servlet having constructor ?
8. forward vs sendredirect
9.  2 servers are there, from 1 st server trying to  hit the 2nd server using forward . Is it possible?
10. jsp implicit objects
11. spring default scope
12. Parent bean scope is singleton and child scope is prototype when we call the child bean , every time parent bean object will be create?
13. get vs load in hibernate
14. What is use of abstract=true
15. union and unionAll
16. how many primary keys are able to create in single table
17. In hibernate, how can we define composite primary key
18. 

Comments