Skip to main content

Course

Java Interview Questions

Ace your coding interview with this comprehensive and curated course of the most important Java interview questions.

  • Level: Intermediate
  • Duration: 2 weeks
  • Type: Interactive
  • Language: English
  • Practice Problems: 60+
Enroll for FREE

Course Content

  • 1.1 Introduction to Course

  • 2.1 Find the Smallest Element in an Array
  • 2.2 Check Whether a Number is Prime or Not
  • 2.3 Number of Vowels in a String
  • 2.4 Length of the String
  • 2.5 Reverse a Given String
  • 2.6 Second Largest Element in an Array
  • 2.7 Find Factorial of a Number
  • 2.8 Remove Spaces From a String
  • 2.9 Swap two numbers Without Using the Third Variable
  • 2.10 Count Number of Digits in a Number
  • 2.11 Find Nth Fibonacci Number
  • 2.12 Toggle the Case of Every Character in the String
  • 2.13 Calculate the Number of Times a Digit Appears in a Number
  • 2.14 Separate 0's and 1's from an Array
  • 2.15 Separate Even and Odd Numbers in an Array
  • 2.16 Count the Number of Capital Letters in a String
  • 2.17 Sum of Largest and Smallest Element in an Array
  • 2.18 Find x Power n Using Recursion
  • 2.19 Reverse an Array Without Using the reverse() Method
  • 2.20 Check Whether a String is Palindrome or Not
  • 2.21 Check Two Strings are Anagrams or not
  • 2.22 Find the Index of the First and the Last Occurrence of an Element

  • 3.1 Find Unique Character in a String
  • 3.2 Check Whether Given Number is Armstrong or Not
  • 3.3 Minimum Characters to Make a String Palindrome
  • 3.4 Find Missing Number in a Number Sequence
  • 3.5 Print Repeated Elements in a String

  • 4.1 Find Leaders in an Array
  • 4.2 Check If A Given String Is A Palindrome
  • 4.3 Count the Number of Words in a String Using HashMap
  • 4.4 Check Whether a String is a Valid Email Address
  • 4.5 Permutation of a String
  • 4.6 Find Longest Palindromic Substring in a Given String
  • 4.7 Combinations of List Elements Whose Sum Equals the Target Value

  • 5.1 Java Virtual Machine(JVM)
  • 5.2 Types of Memory Area Allocated by JVM
  • 5.3 JIT Compiler
  • 5.4 Exceptions in Java
  • 5.5 Static and Non-Static Method
  • 5.6 Final Variable, Method and Class
  • 5.7 No Pointers in Java
  • 5.8 Overloading the main() Method
  • 5.9 JVM, JRE, JDK
  • 5.10 Wrapper Class
  • 5.11 Making a Constructor final
  • 5.12 Difference Between an Interface and an Abstract Class
  • 5.13 Java Functional Interface
  • 5.14 Multiple Inheritance not Supported in Java
  • 5.15 Difference Between "throw" and "throws"
  • 5.16 Overriding Static Method
  • 5.17 Overriding an Overloaded Method
  • 5.18 Does a class Inherit Constructors of its Superclass?
  • 5.19 Create Instances When Constructor is not Defined
  • 5.20 main() Method in Java
  • 5.21 equals() Method and == operator
  • 5.22 Garbage Collection in Java
  • 5.23 HashMap and Hashtable
  • 5.24 Local Variable and Instance Variable
  • 5.25 Heap Memory and Stack Memory
  • 5.26 main() isn't Declared as static
  • 5.27 String, StringBuilder, StringBuffer
  • 5.28 Multithreading in Java
  • 5.29 final, finalize and finally
  • 5.30 Enums
  • 5.31 System Class
  • 5.32 Global Variables
  • 5.33 Synchronized Methods or Blocks
  • 5.34 Iterator and ListIterator
  • 5.35 Polymorphism

  • 6.1 Sum of Even and Odd Numbers
  • 6.2 Numbers in a String
  • 6.3 Same Sum of Digits in Two Numbers
  • 6.4 Reverse the Odd Length Words
  • 6.5 Find all the Words That Starts With a Given Letter
  • 6.6 Find the Longest Common Prefix in the Given Strings
  • 6.7 Reverse the Number
  • 6.8 Product Maximizer
  • 6.9 Divisible by 5
  • 6.10 Hash
  • 6.11 Surrrp
  • 6.12 Pizza Topping Problem
  • 6.13 GCD of Two Numbers
  • 6.14 Length of the Largest Block
  • 6.15 Count Triplets
  • 6.16 Sum of all Numbers in the String
  • 6.17 Rightmost Digits
  • 6.18 Base and Remove String
  • 6.19 Multiply By Two And Filter Twos
  • 6.20 Consecutive List of Numbers
  • 6.21 Has Seven
  • 6.22 Balanced Array
  • 6.23 Pattern
  • 6.24 Repeat String
  • 6.25 Closest Palindrome Number
  • 6.26 Lucky Seven
  • 6.27 Count the Number of Lone 5s
  • 6.28 Harshad Number
  • 6.29 Find the Missing Letter
  • 6.30 Concatenate the First and Last Word
  • 6.31 Standard Deviation

Java CERTIFICATION

Get Java certified

Get your skills verified with our certification.

Showcase your expertise on LinkedIn and stand out from the crowd. Impress your potential employers.

Start this Course
Get Certified

Learn Java by Doing

Build hands-on projects that mirror real developer challenges. Apply what you learn immediately — so you can learn by doing, not just watching.

A woman smiling at her desk

Looking to break into tech?

Landing your first job is difficult, but you don't have to figure it out alone.

Build real projects for your portfolio, earn certificates you can share, and follow a learning path that takes you from the basics to job-ready skills.

Frequently asked questions

You can start Java Interview Questions with a 7-day free trial. Click "Enroll for FREE" to begin.

About 2 weeks. The course has 6 chapters.

Java Interview Questions is an Intermediate course. We recommend completing Learn Java Basics, Practice: Java Basics, Learn Java OOP, Practice: Java OOP and Learn Java Intermediate first.

Yes. Complete Java Interview Questions to earn a Java certificate with your name on it, which you can download or share on LinkedIn. Certificates are included with your subscription.