You are on page 1of 2

RYAN INTERNATIONAL SCHOOL, KHARGHAR

COMPUTER APPLICATIONS

STD: IX

DATE: 03/06/2021

NOTES:

PROGRAM 1:

//First Program

class PRG_1
{
public static void main (String args [])
{
System.out.println("Hello, Java");
} // end of main method
} //end of the class

PROGRAM 2:

// Second Program

class PRG_2
{
public static void main (String args [])
{
System.out.println("School Name : Ryan International School, Kharghar");
System.out.println("State : Maharashtra");
}
}

PROGRAM 3:

//Third Program

class PRG_3
{
public static void main (String args [ ])
{
int a, b; //declaration of variables
a = 12;
b = 14;

System.out.println("a = " + a);


System.out.println("b = " + b);
}
}

PROGRAM 4:

//Fourth program

//Write a JAVA program to display your name, standard and division.

class PRG_4
{
public static void main (String args[])
{
System.out.println("Name : ");
System.out.println("Standard : IX");
System.out.println("Division : F ");

System.out.print ("Class : IX F ");


System.out.println("Using println statement");
}
}

Prepared By:
Mrs. Bhashwini Mittal

You might also like