Saturday, March 21, 2015

Different Java Inteview Questions


1.Different way of initiating object in Java ?
Answer  at link : http://stackoverflow.com/questions/95419/what-are-all-the-different-ways-to-create-an-object-in-java
2. How to write a method in JSP  ?

3.Difference between StringBuilder and String Object ?

4.Difference between wait and sleep method in java ?

5. What is R-B Tree ?

6. Which collection we should use to store K,V pair and order of insertion is maintained ?

7.Generate the following pattern. For N= 4;

1 2 3 4 17 18 19 20
5 6 7 14 15 16
8 9 12 13
10 11

8. Does trim() method in java trims only white space from start and end of string ?

9.Generate a grey code using BIT Operator.

10. Inverse of matrix.

12. Implement a vending machine operation.

13.Write the algorithm of Hash map.

14. Explain different concepts of OOPS.

15. What is benefits of OOPS. 

16. What is use of static keyword ?

17. Use of transient keyword ?

18. Singleton design pattern ?

19.What is n-tier web applications ?

20. What is dao desigb pattern ib java ?

21.Benifits of Singleton Desin pattern?

22. In which class the wait() sleep() , notify() method comes ?

23.Explain encapsulation , why we need it ?

24.How to use Hashmao to store object ?

25. Exception in parent and child class and how the hierarchy is maintained?

26. write program for sum of square of odd number for n value ?

27.what is store and callable procedure in database ?

28. Function overloafing and overriding in java ?

29. Servelet life cycle ?

30. Can return type change in overloading ?

31. Procedure and function in Database?

32. Write a JOINS in Database ?

33. How we are going to decide which one we should use between Interface and Abstract class ?.


No comments:

Post a Comment

Required details

--------------------------------------------------------------------------------------------------------------------------- C:\Program File...