Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Code in Java: 150+ Hands-on Programs for Absolute Beginners
Rating: 4.6 out of 5(97 ratings)
275 students

Code in Java: 150+ Hands-on Programs for Absolute Beginners

Master Java from Scratch: 150+ Hands-On Programs for Absolute Beginners[2026]
Last updated 6/2026
English

What you'll learn

  • Understand and implement Java fundamentals including variables, data types, operators, loops, arrays, and functions.
  • Develop object-oriented programs using classes, objects, inheritance, encapsulation, and polymorphism in Java.
  • Write, debug, and execute 125+ real-world Java programs to solve practical programming challenges.
  • Apply problem-solving and logical thinking skills to prepare for coding interviews, software projects, and further programming studies.

Course content

1 section153 lectures12h 7m total length
  • Program to display Hello World3:53
  • Program to Add two numbers6:06
  • Program to subtract two numbers3:41
  • Program to multiply two numbers4:43
  • Program to divide two numbers5:12
  • Program to check whether a number is Even or Odd5:31
  • Program to find the largest of three numbers5:54
  • Program to Swap two numbers4:25
  • Program to find the Factorial of a number6:11
  • Program to print Fibonacci series upto n terms7:54
  • Program to check if a number is Prime number or not6:35
  • Program to find sum of first N natural numbers6:17
  • Program to reverse a number8:48
  • Program to find sum of digits of a number7:17
  • Program to count number of digits in a number5:29
  • Program to check whether a number is Armstrong number or not9:29
  • Program to print Multiplication table of a number4:39
  • Program to calculate simple interest4:43
  • Program to calculate the Area of a circle3:35
  • Program to find the Area of a rectangle4:10
  • Program to find area of a triangle using Heron's Formula4:46
  • Program to convert Celsius to Fahrenhite3:38
  • Program to convert Fahrenhite to Celsius2:46
  • Program to calculate average of n numbers6:03
  • Program to find minimum of two numbers4:31
  • Program to find maximum of two numbers4:13
  • Program to check if a year is a leap year or not6:06
  • Program to print numbers from 1 to 10 using loop2:42
  • Program to print odd numbers from 1 to 204:05
  • Program to print even numbers from 1 to 202:36

    Print even numbers 1 to 20 using a loop in Java, starting at two and incrementing by two to print 2, 4, 6, 8, 10, 12, 14, 16, 18, 20.

  • Program to calculate sum of even numbers from 1 to n6:13
  • Program to calculate sum of odd numbers from 1 to n2:02
  • Program to print multiples of 5 upto 502:59
  • Program to print ASCII value of a character6:02
  • Program to check whether a character is a vowel or consonant6:10
  • Program to calculate the power of a number4:55
  • Program to print squares of first N numbers3:13
  • Program to print cubes of first N numbers2:08
  • Program to print multiplication table in reverse order4:31
  • Program to find the sum of first N natural number using loop4:09
  • Program to reverse a string6:49
  • Program to check if a string is a Palindrome or not4:51
  • Program to count vowels in a string6:44
  • Program to count consonant in a string6:40
  • Program to convert string to uppercase2:49
  • Program to convert string to lowercase1:38
  • Program to concatenate two strings4:36
  • Program to compare two strings5:31
  • Program to find largest element in an Array12:41
  • Program to find smallest element in an Array2:11
  • Program to calculate sum of elements in an Array6:02
  • Program to calculate average of array elements2:05
  • Program to reverse an Array7:00
  • Program to copy elements of one array to another11:37
  • Program to calculate sum of even numbers in an array7:26
  • Program to calculate sum of odd numbers in an array5:27
  • Program to count even and odd numbers in an array9:41
  • Program to search an element in an array using Linear Search Algorithm12:10
  • Program to sort an array using Bubble sort Algorithm10:37

    Learn bubble sort in Java through a step-by-step demonstration that sorts an array in ascending order using outer and inner loops, with swap logic and a temp variable.

  • Program to count Positive and Negative Numbers in an Array4:37

    Learn to count positive and negative numbers in a Java array using a loop and conditions, increment the counters, and print results, with zero excluded.

  • Program to merge two arrays10:14
  • Program to find second largest element in an Array9:59
  • Program to calculate the sum of diagonal elements in 2D Array8:57
  • Program to find transpose of a matrix12:18
  • Program to find sum of elements in each row of a matrix5:34
  • Program to find sum of elements in each column of a matrix3:27
  • Program to check if a matrix is symmetric7:26
  • Program to count occurences of a number in an array5:09
  • Program to find GCD of two number4:04
  • Program to find LCM of two number6:31
  • Program to convert decimal number to binary number6:00
  • Program to convert decimal number to octal number4:18
  • Program to convert decimal number to hexadecimal number3:16
  • Program to convert binary number to decimal number2:25
  • Program to convert octal number to decimal number3:28
  • Program to convert hexadecimal number to decimal number3:00
  • Program to check if a number is a perfect number or not5:13
  • Program to print perfect numbers in a given range4:38
  • Program to swap two numbers without a temporary variable6:38
  • Program to check if a number is a strong number8:20
  • Introduction to Function4:10
  • Program to check Palindrome using Function4:47
  • Program to count words in a string3:28
  • Program to remove all spaces from a string1:57
  • Program to count number of characters in a string2:36
  • Program to count occurences of a specific character in a string4:34
  • Program to check if two strings are Anagrams5:52
  • Program to remove vowels from a string2:19
  • Program to calculate Compound Interest3:29
  • Program to calculate sum of array elements using function6:02
  • Program to find maximum element in array using function4:48
  • Program to find minimum element in array using function4:55
  • Program to print Identity Matrix4:03
  • Program to print upper triangular part of matrix4:34
  • Program to print lower triangular part of matrix3:43
  • Program to calculate factorial of a number using recursion5:53
  • Program to print fibonacci series using recursion5:23
  • Program to find sum of digits using recursion3:52
  • Program to find GCD of two numbers using recursion4:21
  • Program to find LCM of two numbers using recursion2:57
  • Program to find the Absolute value of the number using Math class2:09
  • Program to find the Square Root of the number using Math class3:42
  • Program to calculate the Power of a number using Math class4:59
  • Program to calculate the Maximum of Two Number using Math class2:11
  • Program to calculate the Minimum of two number using Math class2:32

    Read two integers from the keyboard using a scanner and compute the minimum with Math.min, then display the result.

  • Program to Round number using Math class4:37
  • Program to find Ceil Value of a number using Math class2:11
  • Program to find Floor Value using Math class1:44
  • Program to generate random number using Math class1:41
  • Program to generate random number between 1 and 1004:25
  • Program to calculate Natural Logarithm4:05
  • Program to Calculate log base10 using Math class3:21
  • Program to calculate Exponential function using Math class1:59
  • Program to find SIne of an angle using Math class4:08
  • Program to calculate Cosine of an angle using Math class1:49
  • Program to calculate the Tangent of an angle2:39
  • Program to convert degrees to radians3:48
  • Program to convert radians to degree3:08
  • Program to find Hypothenuse of Right-Angled Triangle3:51
  • Program to find the Power of E2:14
  • Program to find Area of a Circle2:57
  • Program to print current time in milliseconds3:28
  • Program to print time in nanoseconds1:47
  • Program to demonstrate exit program using System.exit()2:28
  • Program to print all environmental variables using System.getenv()2:04
  • Program to print all system specific properties using System.getProperties(2:08
  • Program to get the OS name using System class1:40
  • Program to print the Java version1:26
  • Program to print Java Home Directory1:09
  • Program to print Current User Name1:10
  • Introduction to Class and Object-Theory9:06
  • Program to demonstrate Class3:38
  • Program to demonstrate class with multiple object3:38
  • Program to demonstrate class with constructor8:54
  • Program to demonstrate Default constructor4:23
  • Program to demonstrate Parameterized Constructor3:13
  • Program to demonstrate Constructor Overloading5:18
  • Program to demonstrate the concept of Encapsulation4:49
  • Program to demonstrate Simple Inheritance6:28
  • Program to demonstrate Multilevel Inheritance5:30
  • Program to demonstrate Method Overloading5:01
  • Program to demonstrate Abstract Class6:05
  • Program to demonstrate Interface4:09
  • Program to demonstrate Multiple Interface3:27
  • Program to demonstrate this keyword3:55
  • Program to demonstrate super keyword3:59
  • Program to demonstrate passing object as a parameter5:52
  • Program to demonstrate Copy Constructor4:10
  • Program to demonstrate Constructor Chaining5:10
  • Program to demonstrate Encapsulation with Validation7:09
  • Program to demonstrate Nested Class2:31
  • Program to demonstrate Lambda Function for Addition3:18
  • Program to find square of a number using Lambda Function2:08

Requirements

  • Basic computer skills – Familiarity with using a computer, installing software, and navigating folders.
  • No prior programming experience required – This course is designed for absolute beginners.
  • Willingness to practice – A readiness to write, test, and debug Java programs regularly.
  • Access to a computer with Java installed – Ability to run Java Development Kit (JDK) and a simple IDE like IntelliJ IDEA, Eclipse, or VS Code.

Description

“This course contains the use of artificial intelligence.” AI is used for promo video only.

Looking to start your programming journey but don’t know where to begin? “150+ Java Programming for Absolute Beginners” is your ultimate step-by-step guide to mastering Java from scratch. Whether you’re a complete newbie or someone wanting to strengthen your coding foundation, this course is crafted to make learning Java simple, practical, and fun.

With over 150 hands-on programs, you’ll dive straight into coding from day one. Each program is designed to teach key Java concepts including variables, data types, operators, loops, arrays, functions, object-oriented programming, exception handling, and more. You won’t just memorize theory—you’ll apply what you learn in real-world examples, giving you the confidence to tackle programming challenges independently.

By the end of this course, you will:

  • Understand and implement core Java concepts.

  • Build and debug 150+ practical programs.

  • Gain problem-solving skills and logical thinking techniques.

  • Be prepared for coding interviews, software development projects, and further programming courses.

This course is structured for absolute beginners, using clear explanations, visual examples, and step-by-step instructions that make learning enjoyable and effective. With lifetime access, you can learn at your own pace and revisit lessons anytime.

Start your journey to becoming a confident Java programmer today! Unlock opportunities in software development, web applications, Android development, and more by mastering the language that powers some of the world’s most popular technologies. No prior experience? No problem! By the time you finish this course, you’ll have a solid foundation and a portfolio of 125+ programs that showcase your new skills.


Who this course is for:

  • Absolute beginners with no prior programming experience who want to learn Java from scratch.
  • Students or professionals seeking to strengthen their programming foundation and logical thinking.
  • Aspiring Java developers preparing for coding interviews or software development roles.
  • Anyone interested in building a practical portfolio of Java programs for real-world applications.