Coder Social home page Coder Social logo

corejava-projects's Introduction

Interview Programs

  1. Write a program to find the Most Frequent Element in an given array.
  2. Write a program to find out Duplicate Element in an given array.
  3. Write a program to find sum of all the digits of a given number.
  4. Find the second largest number in the given array.
  5. Find the second minimum number in the given array.
  6. Find the pair of elements(X+Y) in the array whoose sum is equal to given number Z.
  7. Write a program to find the intersection of two arrays.
  8. Write a java program to print the Fibonacci Series upto N number.
  9. Write a java program to print Prime Numbers from 1 to N.
  10. Write a java program to check whether given number is Armstrong Number or not.
  11. Write a java program to convert Binary number to Decimal number?
  12. Write a java program to convert Decimal number to Binary number?
  13. Find the missing Number in the given array of 1 to N.
  14. Write a java program to Reverse an Array.
  15. Write a java program to Reverse a given number.
  16. Write a java program to swap two numbers without using third variable.

String Based Programs

  1. Write a java program to check the given String is Palindrome or not.
  2. How to Swap two Strings without using third (temporary) variable?
  3. Write a java program to reverse a String without using in-build function.
  4. Write a java program to count the number of words in a given String.
  5. Write a java program to remove all White Spaces in the given String.

Sorting

  1. Bubble Sort [Solution]
  2. Quick Sort [Solution]
  3. Selection Sort [Solution]
  4. Insertion Sort [Solution]
  5. Merge Sort [Solution]

Searching

  1. Linear Search [Solution]
  2. Binary Search [Solution]

Java Interview Questions

  1. What do you know about JVM, JRE and JDK?
  2. Is JRE platform dependant or independent?
  3. Which is ultimate base class in java class hierarchy? List the name of methods of it?
  4. Which are the reference types in java?
  5. What is narrowing and widening?
  6. How will you print "Hello CDAC" statement on screen, without semicolon?
  7. Can you write java application without main function? If yes, how?
  8. What will happen, if we call main method in static block?
  9. In System.out.println, What is meaning of every word?
  10. How will you pass object to the function by reference?
  11. What is constructor chaining? How can we achieve it in C++?
  12. Which are the rules to overload method in sub class?
  13. What is the difference between finalize and dispose?
  14. What is shut down hook?
  15. What is the difference between final, finally and finalize?
  16. What is the difference between checked and unchecked exception?
  17. What is exception chaining?
  18. What is the difference between throw and throws?
  19. In which case, finally block doesn’t execute?
  20. What is upcasting?
  21. What is dynamic method dispatch?
  22. What do you know about final method?
  23. What is the difference between abstract class and interface?
  24. What is fragile base class problem and how can we overcome it?
  25. Why java does not support multiple implementation inheritance?
  26. What is marker interface? List the name of some marker interfaces?
  27. What is the significance of marker interface?
  28. What is the difference between Comparable and Comparator?
  29. What is the difference between Array and ArrayList?
  30. What is the difference between HashSet and HashMap?
  31. What is the difference between HashTable and HashMap?
  32. Which collection classes are synchronized?
  33. What is the difference between ArrayList and Vector?
  34. What is the difference between Enumeration and Iterator?
  35. What is the difference between Iterator and ListIterator?
  36. What is the difference between fail-fast and fail-safe iterator?
  37. How can you copy elements of one collection into another without iterator?
  38. What is the difference between String and StringBuffer?
  39. What is the difference between StringBuffer and StringBuilder?
  40. How can you check wheather string is palindrome or not?
  41. Can we write multiple public classes in single .java file? If no why?
  42. What is serialization and deserialization?
  43. If serializable class do not contain serializable fields, what will happen? If its problematic then how will overcome it?
  44. Which two techniques allow us to create new instance from existing one?
  45. Which members do not serialize?
  46. What is metadata? What is advantage of it?
  47. What is bytecode?
  48. What is reflection?
  49. Which features of java makes it platform dependant?
  50. What is applet?
  51. Can you explain life cycle of applet?
  52. Why AWT components are heavy weight component?
  53. What is thread?
  54. Which are the types of thread? What is the difference between them?
  55. Explain life cycle of thread?
  56. What is race condition? How can we overcome it?
  57. What is synchronization? How can we achieve it?
  58. How can we share object between the threads?
  59. Why wait, notify and notifyall methods belongs to Object class instead of Thread class?
  60. What do you know about volatile keyword in java?
  61. What is the difference between Thread. Sleep and Thread.yield?
  62. What is deadlock? How can we avoid it?
  63. Why thread based multitasking is faster than process based multitasking?
  64. When we should use Thread class and Runnable interface to create thread?
  65. What is wild card? Which are the types of it?
  66. What is the difference between TCP and UDP protocol?
  67. What is socket?
  68. When we should use socket and rmi?
  69. How will you write code for linkedlist in java?
  70. What is wrapper class? What is need of it?

corejava-projects's People

Contributors

sathishmepco avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.