Java

Most frequent java programs asked in interviews

  1. java program to print even and odd numbers using two threads
  2. write java program for singleton in multi-threading concept and synchronization
  3. Write a Java Program to swap two numbers with using the third variable
  4. Write a Java Program to iterate ArrayList using for-loop, while-loop, and advance for-loop
  5. Write a Java Program to find the duplicate characters in a string.
  6. Write code to get count of max repeated number
    For Example: 1,3,56,2,7,65,1,76,2,1,5,6,87,54,1,32,1,56,1 : output is 1 and 1’s count is 6
  7. Write a Java Program to find the second highest number in an array.
  8. How to remove duplicate number from array
  9. Write code for dead lock case of thread
  10. How to detect dead lock in thread of java

1 thought on “Most frequent java programs asked in interviews

Leave a Reply

Your email address will not be published. Required fields are marked *