Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java Programs for Interviews
Rating: 4.5 out of 5(88 ratings)
804 students

Java Programs for Interviews

150 Java Programs from basics to advanced are covered for helping you with interviews
Created byArun Motoori
Last updated 11/2022
English
English [Auto],

What you'll learn

  • All the Java programs which are asked in the Interviews

Course content

15 sections151 lectures26h 52m total length
  • Program 1 - What is the output for System.out.println(-6+4*2); ?2:04

    Evaluate the Java expression System.out.println(-6+4*2) by applying operator precedence, with multiplication before addition, yielding 2.

  • Program 2 - Java Program - What is the output for System.out.println((2+3)4);2:08

    Explore how Java evaluates System.out.println((2+3)4) by using parentheses to force addition before multiplication, resulting in an output of 20.

  • Program 3 - What is the output for System.out.println(9+6-3*4/2%5);2:44

    Calculate the Java expression 9+6-3*4/2%5 by applying operator precedence: multiplication, division, modulus, then addition and subtraction, yielding 14.

  • Program 4 - In-taking two numbers using Scanner and printing their sum4:41

    Learn to write a Java program that reads two numbers from the user using a Scanner and prints their sum.

  • Program 5 - Check whether the given input number is even or odd5:38

    This lecture demonstrates a Java program that reads a user input number with a scanner and uses the modulus operator to determine even or odd. It prints the result.

  • Program 6 - Printing the multiplication table of the given input number5:30

    Learn to build a Java program that reads a number from the user using Scanner, then prints its multiplication table from 1 to 10 with proper resource handling.

  • Program 7 - Check whether the given year is a Leap Year15:15

    This lecture demonstrates a Java program to check whether a given year is a leap year, using divisibility by four, hundred, and four hundred rules and input handling.

  • Program 8 - What is the output for System.out.println(7+(3*5)*(4/2)+(5%3)-1);4:28

    explain how to evaluate system.out.println(7+(3*5)*(4/2)+(5%3)-1) using operator precedence, including parentheses, multiplication, division, modulo, and addition or subtraction.

  • Program 9 - Check whether the given character is a Vowel8:40

    Reads a single character with a scanner, checks for vowels in both lower and upper case using a switch, and prints the result.

  • Program 10 - Print the area of a circle7:02

    Demonstrates how to write a Java program to print the area of a circle by reading a user input radius with a scanner, using pi (≈3.14159) to compute the area.

Requirements

  • Knowledge of Core Java

Description

Solutions with detailed explanation of 150 Java programs are covered in this course.

If you are preparing for any Software Job Interviews, we will be asked to write code for various Java programs.

By practicing these programs prior to attending interviews will boost your confidence and help you in getting ready for these interviews.

You can check the course contents to find out what all Java programs are covered in this video course.

Who this course is for:

  • Students who want to practice Java programs for Interviews after learning Core Java