{"id":20035939,"url":"https://github.com/sandeepkushwaha/java-interviews-questions","last_synced_at":"2026-06-08T03:32:14.060Z","repository":{"id":259375683,"uuid":"863887917","full_name":"SandeepKushwaha/java-interviews-questions","owner":"SandeepKushwaha","description":"Core Java Interview Questions and solutions","archived":false,"fork":false,"pushed_at":"2024-10-24T05:37:44.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T06:16:31.209Z","etag":null,"topics":["java","java-interview-questions","java-questions"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SandeepKushwaha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-27T05:26:29.000Z","updated_at":"2024-10-24T05:37:48.000Z","dependencies_parsed_at":"2024-10-24T23:51:27.956Z","dependency_job_id":"430d8c7f-b555-4d30-ac57-f1517ff32ad1","html_url":"https://github.com/SandeepKushwaha/java-interviews-questions","commit_stats":null,"previous_names":["sandeepkushwaha/java-interviews-questions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SandeepKushwaha/java-interviews-questions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandeepKushwaha%2Fjava-interviews-questions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandeepKushwaha%2Fjava-interviews-questions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandeepKushwaha%2Fjava-interviews-questions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandeepKushwaha%2Fjava-interviews-questions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SandeepKushwaha","download_url":"https://codeload.github.com/SandeepKushwaha/java-interviews-questions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandeepKushwaha%2Fjava-interviews-questions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34047266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-interview-questions","java-questions"],"created_at":"2024-11-13T10:10:00.654Z","updated_at":"2026-06-08T03:32:14.043Z","avatar_url":"https://github.com/SandeepKushwaha.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Interview Questions in Java.\n\nIf you’re interviewing for a Java programming role, \nthen your coding skills will probably be tested. \nWhether you’re a beginner in Java or an expert programmer, \nthis repository provides some common Java interview questions and answers to help you prepare.\n\n### List of Content\n\n1. [Second largest element in an array.](src/array/SecondLargest.java)\n2. [Count Character Occurrence in String.](src/string/CharacterOccurrenceCounter.java)\n3. [Reverse String of given input.](src/string/ReverseString.java)\n4. [Swap numbers without third input.](src/math/SwapNumbers.java)\n5. [is Vowel present in String.](src/string/VowelInString.java)\n6. [Check number is prime or not in given number.](src/math/PrimeNumber.java)\n7. [Fibonacci number sequence using recursion](src/math/FibonacciSequence.java)\n8. [How do you check if a list of integers contains only odd numbers in Java?](src/list/CheckOnlyOddNumbers.java)\n9. [Is Given String a palindrome or not?](/src/string/CheckPalindromeString.java)\n10. [Remove white space form String](/src/string/RemoveWhiteSpace.java)\n11. [Deadlock Scenario in Java](/src/thread/Deadlock.java)\n12. [Factorial of a number in Java](/src/math/Factorial.java)\n13. [Reverse a List in Java](/src/list/ReverseList.java)\n14. [Print all the prime numbers between 1 to n.](/src/math/PrintPrimeNumbers.java)\n15. [Find the nth term of the Fibonacci series.](/src/math/NthFibonacciTerm.java)\n16. [Reverse a Linked List in Java](/src/list/ReverseLinkedList.java)\n17. [Find the sum of all the elements of a given array.](/src/array/SumOfArray.java)\n18. [Binary Search in Java](/src/array/BinarySearch.java)\n19. [Pyramid Patterns in Java](src/pattern/PyramidPatterns.java)\n20. [Checks if two arrays contain the same elements.](src/array/CompareTwoArray.java)\n21. [Shuffle an array in Java](src/array/ShuffleArray.java)\n22. [Find Input String in the File.](src/file/FindInputString.java)\n23. [Date Formatter in Java](src/date/DateFormatter.java)\n24. [Decode a String in Java](src/string/DecodeString.java)\n25. [Reverse Words In A String](src/string/ReverseWordsInString.java)\n26. [Valid Parenthesis](src/string/ValidParenthesis.java)\n27. [Remove White Spaces from String](src/string/RemoveWhiteSpacesFromString.java)\n28. [Sort the elements in the given array](src/array/SortElements.java)\n29. [Sort the array in descending order](src/array/DescendingOrder.java)\n30. [Sort the array using Merge Sort](src/array/MergeSort.java)\n31. [Sort the String in given String](src/string/SortString.java)\n\n\n[//]: # (25. [Find the longest common prefix in an array of strings.]\u0026#40;src/string/LongestCommonPrefix.java\u0026#41;)\n[//]: # (19. [Partition in Java]\u0026#40;/src/array/Partition.java\u0026#41;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepkushwaha%2Fjava-interviews-questions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandeepkushwaha%2Fjava-interviews-questions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandeepkushwaha%2Fjava-interviews-questions/lists"}