Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

First Java Program - Input-Output, Debugging and Datatypes

Kunal Kushwaha via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course guides learners through creating, compiling, and running a Java program, then introduces input/output, primitive data types, type conversion, conditions, and loops through short programs.

Syllabus

Introduction
Creating .java file
Setting Up Few Things
Structure of Java File
Creating Main Function
Writing First Line of Code Printing "Hello Word!"
Converting .java to .class Byte Code
Running Main.class
Explanation of words of the Program
What is 'public' 1st line?
What is 'class'?
What is 'Main' in this code
What is 'main function'?
What is 'public' 2nd line?
What is 'static'?
What is 'void'?
Array and Arguments
Changing Location of Byte Code
Location of 'javac' and 'java'
Environment Variable PATH
Starting with IntelliJ IDEA
Some Shortcuts
What is a 'package'?
What is 'System.out.println'?
Outputs in Java
Inputs in Java
Primitive Data Types in Java
Comments in Java
Int Input Program
Literals and Identifiers
String Input Program
Float Input Program
Sum of Two Numbers
Type Conversion and Casting
Type Conversion
Conditions for Type Conversion
Typecasting
Automatic Type Promotion in Expressions
Java follows Unicode
Rules for Type Promotion
Example for thorough review of concepts
Basics of while loops and for loops
if condition
while loops
for loops
When to use - while loop and for loop
Temperature Conversion Program
Outro

Taught by

Kunal Kushwaha

Reviews

Start your review of First Java Program - Input-Output, Debugging and Datatypes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.