0% found this document useful (0 votes)
3 views3 pages

Core Java Java8 Coding Interview Questions 160

The document contains a comprehensive list of 160 Java-related interview questions covering core Java concepts, Java 8 features, and coding exercises. Topics include Java architecture, object-oriented programming principles, exception handling, multithreading, the Java Collection Framework, and the Stream API. Additionally, it provides practical coding challenges to test programming skills in Java.

Uploaded by

prabhas Tekula
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Core Java Java8 Coding Interview Questions 160

The document contains a comprehensive list of 160 Java-related interview questions covering core Java concepts, Java 8 features, and coding exercises. Topics include Java architecture, object-oriented programming principles, exception handling, multithreading, the Java Collection Framework, and the Stream API. Additionally, it provides practical coding challenges to test programming skills in Java.

Uploaded by

prabhas Tekula
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Core Java + Java 8 + Coding Interview Questions

(160 Questions)

1 What are the main features of Java?


2 What is the difference between JDK, JRE, and JVM?
3 What is JVM architecture?
4 What is bytecode in Java?
5 What is platform independence?
6 What are the different memory areas in JVM?
7 What is stack memory and heap memory?
8 What are primitive data types in Java?
9 What are wrapper classes?
10 What is autoboxing and unboxing?
11 What is a class and object?
12 What is a constructor?
13 What are types of constructors?
14 What is constructor overloading?
15 What is method overloading?
16 What is method overriding?
17 What is inheritance?
18 What are types of inheritance in Java?
19 What is polymorphism?
20 What is compile-time polymorphism?
21 What is runtime polymorphism?
22 What is encapsulation?
23 What is abstraction?
24 What is an abstract class?
25 What is an interface?
26 What is the difference between abstract class and interface?
27 What are access modifiers?
28 What is the difference between public, private, protected, and default?
29 What is the static keyword?
30 What is the final keyword?
31 What is the super keyword?
32 What is the this keyword?
33 What is the Object class?
34 What are important methods of Object class?
35 What is equals() and hashCode()?
36 What is garbage collection?
37 What are types of garbage collectors in Java 8?
38 What is the difference between String, StringBuilder, and StringBuffer?
39 What is string immutability?
40 What is the difference between == and equals()?
41 What is exception handling?
42 What are checked and unchecked exceptions?
43 What is try-catch-finally?
44 What is the difference between throw and throws?
45 What is a custom exception?
46 What is multithreading?
47 What is the difference between process and thread?
48 What are ways to create threads in Java?
49 What is thread lifecycle?
50 What is synchronization?
51 What is synchronized method and block?
52 What is deadlock?
53 What is volatile keyword?
54 What is transient keyword?
55 What is serialization?
56 What is deserialization?
57 What is cloning?
58 What is shallow copy and deep copy?
59 What is reflection API?
60 What is class loader?
61 What are types of class loaders?
62 What is the Java Collection Framework?
63 What are core interfaces in collections?
64 What is the difference between List and Set?
65 What is the difference between Set and Map?
66 What is the difference between ArrayList and LinkedList?
67 What is the difference between Vector and ArrayList?
68 What is the difference between HashSet and TreeSet?
69 What is the difference between HashMap and Hashtable?
70 What is the difference between HashMap and LinkedHashMap?
71 What is the difference between HashMap and TreeMap?
72 What is Comparable interface?
73 What is Comparator interface?
74 What is fail-fast and fail-safe iterator?
75 What is Iterator?
76 What is ListIterator?
77 What is ConcurrentHashMap?
78 What is blocking queue?
79 What is Stream API in Java 8?
80 What are intermediate operations in streams?
81 What are terminal operations in streams?
82 What is filter() in streams?
83 What is map() in streams?
84 What is flatMap()?
85 What is reduce() in streams?
86 What are parallel streams?
87 What is lambda expression?
88 What is functional interface?
89 What is @FunctionalInterface annotation?
90 What are method references?
91 What is Optional class in Java 8?
92 What is Date and Time API in Java 8?
93 What are default methods in interfaces?
94 What are static methods in interfaces?
95 What is forEach() method in Java 8?
96 What is Nashorn in Java 8?
97 What is JDBC?
98 What are JDBC components?
99 What are steps to connect to database using JDBC?
100What is Statement?
101What is PreparedStatement?
102What is CallableStatement?
103What is connection pooling?
104What is ResultSet?
105What are types of ResultSet?
106What is batch processing in JDBC?
107What is driver manager?
108What is classpath?
109What is package in Java?
110What is the difference between import and package?
111What is marker interface?
112What is annotation in Java?
113What are built-in annotations?
114What is enum in Java?
115What is varargs in Java?
116What is type casting?
117What is upcasting and downcasting?
118What is method hiding?
119What is dynamic method dispatch?
120What is tight coupling and loose coupling?
121What is dependency injection concept?
122What is SOLID principle in Java?
123Write a Java program to reverse a string.
124Write a Java program to check palindrome string.
125Write a Java program to find factorial of a number.
126Write a Java program to print Fibonacci series.
127Write a Java program to swap two numbers without temporary variable.
128Write a Java program to count vowels in a string.
129Write a Java program to sort an array.
130Write a Java program to find largest element in an array.
131Write a Java program to remove duplicates from array.
132Write a Java program to find second largest number in array.
133Write a Java program to check prime number.
134Write a Java program to reverse a number.
135Write a Java program to find duplicate characters in string.
136Write a Java program to count words in a string.
137Write a Java program to convert string to integer.
138Write a Java program to check anagram strings.
139Write a Java program to merge two arrays.
140Write a Java program to remove whitespace from string.
141Write a Java program to find missing number in array.
142Write a Java program to rotate array.
143Write a Java program using streams to filter even numbers.
144Write a Java program using streams to find maximum value.
145Write a Java program using streams to sort list.
146Write a Java program using lambda to iterate list.
147Write a Java program using streams to remove duplicates.
148Write a Java program using Optional to avoid NullPointerException.
149Write a Java program to group elements using streams.
150Write a Java program to count occurrences using streams.
151Write a Java program to find longest string in list using streams.
152Write a Java program to convert list to map using streams.

You might also like