■ Java Interview Programs — Arrays, Strings, and Characters
STRING Programs
1■■ Reverse a String
2■■ Check Palindrome
3■■ Count Vowels & Consonants
4■■ Count Character Frequency
5■■ Check Anagram
6■■ Remove Spaces
7■■ Count Words
8■■ Check String Rotation
9■■ Convert Case
■ Find Duplicate Characters
ARRAY Programs
1■■ Find Largest & Smallest Element
2■■ Find Second Largest Element
3■■ Sort Array
4■■ Reverse Array
5■■ Sum of Elements
6■■ Average of Array
7■■ Search Element
8■■ Copy Array
9■■ Merge Two Arrays
■ Remove Duplicates
CHARACTER Programs
1■■ Check Vowel or Consonant
2■■ Check Alphabet / Digit / Special char
3■■ Convert Case
4■■ Count Letters, Digits, Spaces
5■■ Frequency of Each Character
6■■ Remove Special Characters
Important Java Concepts
• Core Java — Data Types, Loops, Operators
• OOPs — Class, Object, Inheritance, Polymorphism, Abstraction, Encapsulation
• String Handling — immutability, StringBuilder
• Arrays — Sorting, Searching
• Collections — List, Set, Map
• Exception Handling — try-catch-finally
• File Handling — FileReader, FileWriter
• Wrapper Classes — Auto-boxing & unboxing
• Static & final — common interview area
• Java 8 Features — Streams, Lambda
Practice Patterns
• Print star patterns
• Fibonacci series
• Factorial
• Prime number check
• Palindrome number
• Armstrong number
• Reverse number
• Swap two numbers without third variable
Interview Tips
■ Focus on logic, not memorization
■ Write code on paper to practice
■ Revise Strings, Arrays, Loops well
■ Explain time complexity in simple words
■ Learn a few HashMap and Collections programs