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

Coursera Plus Monthly Sale: All Certificates & Courses 40% Off!
Learn to create and run your first Java program in this comprehensive video tutorial. Explore essential concepts including input/output operations, data types, type conversion and casting, debugging techniques, control flow structures, and loop implementations. Follow along with hands-on demonstrations covering file creation, code structure, main function setup, and program execution. Dive into key Java components like classes, methods, and packages while mastering the use of IntelliJ IDEA. Practice with real-world examples such as temperature conversion to reinforce your understanding of Java fundamentals.

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.