#### In this article, we will discuss some of the frequently asked programming interview questions in Java.

If you are going for a Java developer/Senior developer job interview with big technical giants like Walmart Labs, Google, Ebay, Amazon, Apple,Yahoo etc.., you should be prepared for these algorithm questions.

Normally these companies use such questions to validate your understanding of programming concepts, data structures and algorithms.

### Java Programming Questions on Strings

#### How to remove duplicate characters from a String? (Solution)

#### How to check if two Strings are anagrams of each other? (Solution)

#### How to reverse a String in Java ? (Solution)

#### How to check if String is Palindrome? (Solution)

#### How to check if a String is permutation of a Palindrome? (Solution)

#### How to find the length of longest substring in a String without any repeating characters? (Solution)

#### How to determine if the string has all unique characters (Solution)

#### Replace all spaces in a string with %20 (Solution)

#### How to find all possible substrings in a string? (Solution)

#### How to find the longest common subsequence between two strings? (Solution)

### Coding Interview questions on Numbers

- Write a Java program to check if given number is a prime number or not : (Solution)
- How to swap two numbers without using a temp variable in java ? (Solution)
- Write a Java program to find GCD of two numbers using recursion : (Solution)
- Write a java program to check if a number is Armstrong number : (Solution)
- Write a java program to Calculate power of a number using recursion :
- Find sum of digits of a number using recursion in java : (Solution)
- Convert a decimal number to binary using recursion in java : (Solution)
- Java program to find factorial of a number : (Solution)
- Java program to calculate Fibonacci series :(Solution)
- Java program to reverse a number and check if it is a Palindrome (Solution)

### Coding Interview questions on Arrays

- How to find duplicates in an array ? (Solution)
- How to find reverse an array ? (Solution)
- How to find majority element in an unsorted array ? (Solution)
- How to find intersection of two unsorted arrays in Java ? (Solution)
- How to find an element in an Array in Java ? (Solution)

### Coding Interview questions on Linked List

- How to add, update, remove elements from a Linked List ? (Solution)
- How to reverse a Linked List ? (Solution)
- How to detect a cycle in a singly LinkedList ? (Solution)
- How to merge two sorted linked lists ? (Solution)
- How to remove duplicates from a sorted linked list in Java ? (Solution)

### Sorting Algorithms

#### Simple sorts

#### Efficient sorts

#### Bubble sort and variants

#### Distribution sorts