0% found this document useful (0 votes)
9 views1 page

Java Programming Basics: First Steps

This document provides an introduction to Java programming, focusing on installation and writing the first program. It outlines the steps to install the Java Development Kit (JDK) and preferred IDEs like IntelliJ or Visual Studio Code. Additionally, it explains basic programming concepts such as functions and classes, culminating in a simple 'Hello World' program example.

Uploaded by

Fatima Ahmed
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Java Programming Basics: First Steps

This document provides an introduction to Java programming, focusing on installation and writing the first program. It outlines the steps to install the Java Development Kit (JDK) and preferred IDEs like IntelliJ or Visual Studio Code. Additionally, it explains basic programming concepts such as functions and classes, culminating in a simple 'Hello World' program example.

Uploaded by

Fatima Ahmed
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

‭Java - Introduction to Programming‬

‭Lecture 1‬

‭Installation & First Program‬

‭1.‬ I‭ nstall Java‬


‭a. Install JDK‬‭(‭h‬ ttps://[Link]/in/java/technologies/[Link]‬‭)‬
‭b. Install IntelliJ (‬‭[Link]
‭OR‬
‭b. Install Visual Studio Code (VS Code) - Prefer THIS‬
‭(‬‭[Link]

‭2.‬ ‭Sample Code‬


‭ unctions‬
F
‭A function is a block of code which takes some input, performs some operations‬
‭and returns some output.‬
‭The functions stored inside classes are called methods.‬
‭The function we have used is called main.‬

‭ lass‬
C
‭A class is a group of objects which have common properties. A class can have‬
‭some properties and functions (called methods).‬
‭The class we have used is Main.‬

‭3.‬ ‭Our 1st Program‬


public class‬‭
‭ Main {‬

public static void‬‭


‭ main‬
(String[] args) {‬

‭/ Our 1st Program‬
/
System.‬
‭ out‬
‭ .println(‬
‭ "Hello World"‬
‭ )‭
‭;‬‬
}‬

}‬

‭Apna College‬

You might also like