Interview Programs (beginner to advanced) in java



You are here : Home / Core Java Tutorials /






Level1 programs (beginner)

















> 36) Write a program to find Smallest And Largest Number In Array In Java

>2) Check whether String is Palindrome or not using recursion example in java - tricky interview programs
>3) Find Factorial using recursion example in java - tricky interview programs
>4) Find out count of all characters in string (including special characters) in java - important interview programs
>5) Find out count of all characters in string using HashMap example (including special characters) in java - simple interview programs
>6) How to Reverse String using recursion example in java - important interview programs
>7) Write a Program to find out Fibonacci series using recursion - example in java - interview programs
>8) How to find the first non repeated character in string in java - important interview programs
>9) How to Remove duplicate elements from sorted array example in java - important interview programs
>10) How can you Reverse words in sentence example in java
>11) Write a program to find out substring in given string example  in java - important interview programs
>12) Write a Program  to find Sum of digits in number using recursion  in java - interview
>13) Write a Program to find whether all characters of string appear in the inputString in same order in java - important interview programs
>14) write a program to find out all possible unique subString present in a given string - example in java - tricky interview programs
>15) How can you find subArray in array whose sum matches required sum example in java - important interview programs
>16) Find duplicates in array in one iteration in java - tricky interview programs
>17) program to find count of each character in String and print them in java - important interview programs
>18) Write a program for implementing Priority Queues in java - interview programs
>19) Write a program to implement Circular Queue in java - interview programs
>20) Write a Program to Sort array using Insertion Sort in java - important interview programs
>21) Search element in array using Binary Search in java Example - important interview programs
>22) Write a program to implement Single LinkedList in java Example
>23) Write a program to implement Sorted Single LinkedList in java - important interview programs
>24) Write a program to reverse the Single LinkedList in java
>25) Find two single LinkedLists are merging or not in java - Example - interview programs
>26) Find single LinkedList is circular or not in java Example - interview programs
>27) Merge two sorted arrays in java program  - important interview programs
>28) Replace space in string by $#$ in java - tricky interview programs
>28) Write a Program Replace all $#$ in string by space in java - tricky interview programs
>29) Program to Find position from sorted array has been rotated in java - interesting interview
>31) Find Duplicate Characters In String in java
>42) How to synchronize arraylist in java to make it completely thread safe in java
>43)sorting list by implementing Comparable and Comparator in java
>51) set Thread priorities
>52) how to interrupt or STOP thread in java
>53) write Threads addShutdownHook in java
>54) Handling uncaught runtime exception generated in run method
>55) Demonstrate ThreadGroup's important methods in DETAIL
>56) Implementing Threads in java by implementing Runnable interface and extending Thread class
>57) How Thread behaviour is unpredictable?
>58) ensure all threads that started from main must end in order in which they started and also main should end in last?
>59) Volatile example in java?
>60) Race condition in multithreading and it's solution
>61) solve Consumer Producer problem by using wait() and notify() methods, where consumer can consume only when production is over
>62) Deadlock in multithreading - program to form DeadLock, solving DeadLock
>63) 2 alternate ways to stop thread, as stop() method is deprecated
>64) What will happen if we don’t override run method of thread?
>65) What will happen if we override start method of thread?
>66) Suppose you have 2 threads (Thread-1 and Thread-2) on same object. Thread-1 is in synchronized method1(), can Thread-2 enter synchronized method2() at same time?
67) Override equals() and hashCode() method
68) How Integer is used as key in Hashmap
69) Overriding equals and hashcode method - Top 18 Interview questions
70) THREADS - output interview questions
71) THREADS - interview questions and answers
72) Thread concurrency - interview questions
73) COLLECTION - interview question and answers
74) Serialization - interview questions
75) How Serialize and DeSerialize object
76) Avoid ObjectInputStream.readObject() from throwing EOFException at End Of File in java
77) write program to Customize Serialization process by defining writeObject()  method & DeSerialization process by defining readObject() method
78) wap to Serialize and DeSerialize object by implementing Externalizable interface- override writeExternal() and readExternal() methods
79) program to define Impact of not defining serialVersionUID in class and  avoiding InvalidClassException
80) If member of class does not implement Serializable interface - than  NotSerializableException is thrown
81) program to make subclass avoid Serialization if its superClass has implemented Serialization interface
82) Avoid Deserialization process from creating another instance of Singleton class
83) wap to Deep copy in java using Serialization and Deserialization
84) How to handle exception thrown from static block in java? Why throw not allowed in static block
85) program of Exception chaining in java
86) What are checked (compile time exceptions) in java
87) write Try-with-resources in java
88) write program to show Catch block and Automatic Resource Management in java 7 (Multi catch syntax)
89) write Multiple catch block in java
90) Create User defined checked and unchecked Exception/ custom Exception in java
91) EXCEPTIONS - Top 60 interview questions and answers
92) EXCEPTIONS - important OUTPUT questions
93) write program to show OutOfMemoryError in java
94) When dividing by zero does not throw ArithmeticException in java
95) java.lang.ArithmeticException in java - Divide number by zero
96) When java.lang.StackOverflowError occurs in java
97) When java.lang.IllegalStateException occurs in java
98) When java.lang.ArrayIndexOutOfBoundsException occurs in java
99) How to solve java.lang.NoClassDefFoundError in java
101) Dates programs in java
Level3 programs (advanced)


>2) Permutation of string using recursion in java
>3) Find missing number between 1 to 100 in unsortedArray - consume less memory - interview program in java
>4) Find missing number between 1 to 100 in unsortedArray - in one iteration in java
>5) Find intersection point of single circular LinkedList - advanced interview question in java
>6) Calculate number of nodes in single circular LinkedList
>7) Sort array using merge sort in java
>8) Sort array using quick sort
>9) Write a program to implement Sorted DoublyLinkedList in java
>10)Write a program to implement DoublyLinkedList in java
>11)Program to Find first missing positive number in unsorted array in java
>12)Program to print all combinations of String by placing space in between in java
>20) ArrayList custom implementation in java
>21)Set Custom implementation in java
>25)Executor and ExecutorService framework in java
>26)AtomicInteger in java
>27) Implementation of custom/own AtomicInteger in thread concurrency tutorial in java
>28) Semaphore in java

>50) 






Pattern/Pyramid generating programs(will improve your logic)






Having any doubt? or you liked the tutorial! Please comment in below section.
Please express your love by liking JavaMadeSoEasy.com (JMSE) on facebook, following on google+ or Twitter.


RELATED LINKS>


Labels:
eEdit
Must read for you :