0% found this document useful (0 votes)
100 views

JAVA Interview Questions.

This document contains 100 Java interview questions organized into multiple sections on topics such as JDK vs JRE vs JVM, Java memory model, object-oriented programming concepts, exceptions, collections, multithreading, JDBC, and programming problems. The questions cover fundamental Java concepts, features, and APIs for data structures, database connectivity, and concurrency. Sample programs are provided for common programming problems like checking prime numbers, reversing a string, and sorting arrays.

Uploaded by

Ramesh k
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

JAVA Interview Questions.

This document contains 100 Java interview questions organized into multiple sections on topics such as JDK vs JRE vs JVM, Java memory model, object-oriented programming concepts, exceptions, collections, multithreading, JDBC, and programming problems. The questions cover fundamental Java concepts, features, and APIs for data structures, database connectivity, and concurrency. Sample programs are provided for common programming problems like checking prime numbers, reversing a string, and sorting arrays.

Uploaded by

Ramesh k
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

JAVA INTERVIEW QUESTIONS.

1) What is difference between JDK, JRE and JVM?

2) How many types of memory areas are allocated by JVM?

3) What is JIT compiler?

4) What is platform?

5) What is the main difference between Java platform and other


platforms?

6) What gives Java its 'write once and run anywhere' nature?

7) What is class loader?

8) What is the purpose of default constructor?

9) Does constructor return any value?

10) Is constructor inherited?

11) What if I write static public void instead of public static void?

12) What is the default value of the local variables?

13) What is difference between object oriented programming


language and object based programming language?

14) What will be the initial value of an object reference which is


defined as an instance variable?

15) What is constructor?

16) Can you make a constructor final?

17) What is static variable?

18) Why main method is static?

19) What is static block?

20) Can we execute a program without main () method?

21) What is difference between static (class) method and instance


method?
JAVA INTERVIEW QUESTIONS.
22) What is Inheritance?

23) Why multiple inheritances are not supported in java?

24) What is composition?

25) Why Java does not support pointers?

26) Can you use this () and super () both in a constructor?

27) What is method overloading?

28) Can we overload main () method?

29) Can we override static method?

30) Difference between method Overloading and Overriding .

31) What is final variable?

32) What is final method?

33) What is final class?

34) Can you declare the main method as final?

35) What is the difference between static binding and dynamic


binding?

36) What is abstraction?

37) What is the difference between abstraction and encapsulation?

38) What is abstract class?

39) Can you use abstract and final both with a method?

40) What is interface?

41) What is difference between abstract class and interface?

42) Can we define private and protected modifiers for variables in


interfaces?

43) What is package?


JAVA INTERVIEW QUESTIONS.
44) What is static import?

45) What is difference between Checked Exception and Unchecked


Exception?

46) What is the base class for Error and Exception?

47) Is it necessary that each try block must be followed by a catch


block?

48) What is finally block?

49) What is difference between throw and throws?

50) What is the meaning of immutable in terms of String?

51) Why string objects are immutable in java?

52) What is the basic difference between string, string buffer and
String Builder object?

53) What is nested class?

54) What is nested interface?

55) What is Garbage Collection?

56) What is the purpose of finalize () method?

57) What is difference between final, finally and finalize?

58) What is serialization?

59) Can you access the private method from outside the class?

60) What is an applet?

61) What is multithreading?

62) What is thread?

63) What does join () method?

64) What is difference between wait () and sleep () method?

65) Can we call the run () method instead of start ()?


JAVA INTERVIEW QUESTIONS.
66) What is synchronization?

67) What is the purpose of Synchronized block?

68) What is static synchronization?

69) What is the difference between notify() and notify All()?

70) What is deadlock?

71) What is the difference between ArrayList and Vector?

72) What is the difference between Array List and Linked List?

73) What is the difference between List and Set?

74) What is the difference between Set and Map?

75) What is the difference between Collection and Collections?

76) What is the advantage of generic collection?

77) What is the Dictionary class?

78) What is JDBC?

79) What is JDBC Driver?

80) What are the steps to connect to the database in java?

81) What are the JDBC API components?

82) What are the JDBC statements?

83) What is the role of JDBC DriverManager class?

84) What does the JDBC Connection interface?

85) What does the JDBC Result Set interface?

86) What does the JDBC Database Metadata interface?

87) How can we store and retrieve images from the database?

88) Which interface is responsible for transaction management in


JDBC?
JAVA INTERVIEW QUESTIONS.

PROGRAMS..

1) Verify a number is Even/Odd


2) Swapping Numbers without using 3rd variable
3) Factorial of a number
4) How to get the prime numbers between a given ranges.
5) Check a number is prime or not.
6) Binary Search.
7) Program to print prime numbers in java
8) Java program to Convert array list to array 
9) Ascending Order Program.
10) How to Reverse a String Without Using builtin Method
JAVA INTERVIEW QUESTIONS.
JAVA INTERVIEW QUESTIONS.
JAVA INTERVIEW QUESTIONS.

You might also like