Open links in new tab
  1. Core Java programs
    Fundamental Java programs covering algorithms, number operations, arrays, and matrix processing
    Fibonacci sequence
    Loop-based sequence
    Prime number
    Prime check logic
    Palindrome
    String symmetry check
    Factorial
    Recursive multiplication
    Narcissistic number
    Digit power sum
    Random number generation
    Random value generation
    Print Pattern
    Console shape output
    Compare Two Objects
    Equality method usage
    Create Object
    Instance creation demo
    Print ASCII Value
    Character code display
    Reverse a Number
    Digit order reversal
    Convert Number to Word
    Numeric text output
    Automorphic number
    Square ends match
    Peterson Number
    Factorial digit sum
    Sunny Number
    Perfect square plus
    Tech Number
    Split square sum
    Fascinating Number
    Concatenation property
    Keith number
    Sequence sum match
    Neon Number
    Square digit sum
    Spy Number
    Digit sum product
    ATM Program
    Banking simulation
    Autobiographical Number
    Self-descriptive digits
    Emirp Number
    Prime reverse prime
    Sphenic number
    Three prime factors
    Buzz number
    Ends with seven
    Duck Number
    Contains zero digit
    Evil number
    Even binary ones
    ISBN Number
    Book code validation
    Krishnamurthy Number
    Factorial digit sum
    Bouncy Number
    Mixed digit order
    Mystery Number
    Reverse sum equals
    Smith number
    Prime factor sum
    Strontio Number
    Middle digit repeat
    Xylem and Phloem Number
    Outer inner sum
    Nth Prime Number
    Sequence prime find
    Alternate Prime Numbers
    Skip prime listing
    Square Root Without Sqrt
    Manual root calculation
    Swap Two Numbers Bitwise
    XOR swap method
    GCD of Two Numbers
    Greatest divisor find
    Largest of Three Numbers
    Max value compare
    Smallest of Three Numbers Ternary
    Min via ternary
    Check Positive or Negative
    Sign evaluation
    Check Perfect Square
    Square check logic
    Display Even Numbers 1 to 100
    Even range output
    Display Odd Numbers 1 to 100
    Odd range output
    Sum of Natural Numbers
    Sequential sum calc
    Copy Array Elements
    Array duplication
    Frequency of Array Elements
    Element count tally
    Left Rotate Array
    Shift elements left
    Duplicate Elements in Array
    Find repeated values
  2. Designed by

    First appeared

    May 23, 1995
    Java Tutorial - W3Schools

    Java is one of the world's most widely used programming languages. Learn Java with simple explanations, practical examples, exercises, and challenges that help you build real skills step by step.

    W3School
    Java Examples - Programiz

    Want to learn Java by writing code yourself? Enroll in our Interactive Java Course for FREE. Java Program to Iterate through each characters of the string. Java Program to Remove elements from the Li…

    Programiz
    100+ Java Programs for Practice - programmingoneonone.com

    Whether you are preparing for Java exams, coding interviews, competitive programming, or improving your core programming skills, these Java practice p…

    ProgrammingOneOnOne
  3. Intermediate Java focuses on enhancing your object-oriented programming, collections handling, threading, and error management skills to build efficient, maintainable applications.

    Key areas include:

    • OOP Enhancements: Mastering inheritance, polymorphism, abstraction, and encapsulation with practical use of abstract classes, interfaces, and method overriding.

    • Collections Framework: Efficiently using ArrayList, HashMap, HashSet, and applying generics for type safety.

    • Threading: Creating and managing threads, using synchronization, and understanding the thread lifecycle.

    • Exception Handling: Differentiating between checked and unchecked exceptions, and implementing custom exceptions.

    • I/O and Serialization: Reading/writing files, working with streams, and persisting objects.

    • Regular Expressions: Pattern matching and text processing.

    Example – Using Collections and Generics

    import java.util.*;

    public class FrequencyCounter {
    public static void main(String[] args) {
    List<String> words = Arrays.asList("apple", "banana", "apple", "orange", "banana", "apple");
    Map<String, Integer> frequencyMap = new HashMap<>();

    for (String word : words) {
    frequencyMap.put(word, frequencyMap.getOrDefault(word, 0) + 1);
    }

    frequencyMap.forEach((k, v) -> System.out.println(k + ": " + v));
    }
    }
    Copied!
    Feedback
  1. Java Tutorial - W3Schools

    Java is one of the world's most widely used programming languages. Learn Java with simple explanations, practical examples, exercises, and challenges that help you build real skills step by step.

    Usage example
    public class Main { public static void main(String[] args) { System.out.println("Hello World"); }}
  2. Collection of 60+ beginner to intermediate Core Java programs

    This repository contains 60+ Java programs written for learning and practicing core Java concepts. It covers the foundational topics every Java developer should know, with example programs organized …

  3. Java Examples - Programiz

      1. Java Program to Print an Integer (Entered by the User)
      2. Java Program to Add Two Integers.
      3. Java Program to Multiply two Floating Point Numbers.
      4. Java Program to Find ASCII Value of a character.
      5. Java Program to Compute Quotient and Remainder.
  4. 100+ Java Programs for Practice

    Whether you are preparing for Java exams, coding interviews, competitive programming, or improving your core programming skills, these Java practice …

  5. Core Java Tutorial with Examples | Learn Java …

    Feb 21, 2024 · This tutorial provides core java tutorial for beginners as well as for experienced programmers. It will help you learn java in a more interactive manner.

  6. Java Programs | Java Programming Examples - Tpoint Tech

    Feb 10, 2026 · Basic Java programs like Fibonacci series, prime number, factorial, and palindrome are among the most commonly asked. All the Java programs are explained with appropriate examples …

  7. Java Tutorial – Guru99

    Jan 9, 2026 · Free Java Tutorial - This online core Java tutorial for beginners and professionals is designed in a simple and effective manner to learn the java programming language from basic to …

  8. Java Programming Essentials and Core Concepts

    Up to1%cash back
     · In this module, we will explore the core components of the Java platform, including the role of javac and bytecode. You'll also take a first look …

  9. Java Tutorial

    This Java tutorial has been written for beginners to advanced programmers who are striving to learn Java programming. We have provided numerous practical …

  10. People also ask
    Loading
    Unable to load answer