SlideShare a Scribd company logo
OVERVIEW OF
LANGUAGE
Contents
• Introduction
• Simple Java Program
• More of Java
• An application With Two classes
Introduction
• JAVA is a general purpose object oriented
language.
• We can develop two types of JAVA
programs:-
• Stand-alone Application:- these are java
programs that are used to carry out a certain
task at a stand- alone local computer.
• Web Applets:- Web applets are the small java
programs used to develop web applications.
Introduction continue..
• Executing a Stand- alone application involve two
steps
• Compile the source code into byte code(javac compiler).
• Executing the byte code program(java interpreter).
• Executing a Web Applets also involve two steps
• Compile the source code into byte code(javac compiler).
• Executing the byte code with java enabled browser.
Simple Java Program
• Let us look at a simple code that would
print the words Hello World.
public class MyFirstJavaProgram
{
/* This is my first java program.
This will print 'Hello World' as the output */
public static void main(String []args)
{
System.out.println("Hello World");//prints Hello World
}
}
Simple Java Program
• Let us look at a simple code that would
print the words Hello World.
public class MyFirstJavaProgram  Class Declaration
{
/* This is my first java program.
This will print 'Hello World' as the output */
public static void main(String []args)
{
System.out.println("Hello World");//prints Hello World
}
}
Simple Java Program
• Let us look at a simple code that would
print the words Hello World.
public class MyFirstJavaProgram  Class Declaration
{  Opening Brace
/* This is my first java program.
This will print 'Hello World' as the output */
public static void main(String []args)
{
System.out.println("HelloWorld");//prints HelloWorld
}
}
Simple Java Program
• Let us look at a simple code that would
print the words Hello World.
public class MyFirstJavaProgram  Class Declaration
{  Opening Brace
/* This is my first java program.
This will print 'Hello World' as the output */
public static void main(String []args)  the main line
{
System.out.println("HelloWorld");//prints HelloWorld
}
}
Simple Java Program
• Let us look at a simple code that would
print the words Hello World.
public class MyFirstJavaProgram  Class Declaration
{  Opening Brace
/* This is my first java program.
This will print 'Hello World' as the output */
public static void main(String []args)  the main line
{
System.out.println("HelloWorld");//prints HelloWorld  output line
}
}
More of java
import java.lang.Math;
public class Exercise
{
public static void main(String[] args)
{
double x = 16;
double y;
y= Math.sqrt(x);
System.out.println("The square root of " +y);
}
}
More of java
import java.lang.Math;
public class Exercise
{
public static void main(String[] args)
{
double x = 16;
double y;
y= Math.sqrt(x);  math function
System.out.println("The square root of " +y);
}
}
An application With Two
classes
class Room
{
float length;
float breadth;
void getdata(float a, float b)
{
length= a;
breadth= b;
}
}
Continue..
class RoomArea
{
public static void main(String args[])
{
float area;
Room room1= new Room (); //creates an object room1
room1.getdata(14,10);//assign value to length and breadth
area = room1.length * room1.breadth;
System.out.println(“Area =”+area);
}
}
itft-Overview of java language

More Related Content

PPTX
Presentation1
PPTX
PPTX
Project Lombok!
DOCX
Unit of competency
PPT
Simple Java component in Mule
PPTX
History of java'
PDF
Алексей Злобин «Scala in Goozy»
PPTX
Introduction To JavaScript
Presentation1
Project Lombok!
Unit of competency
Simple Java component in Mule
History of java'
Алексей Злобин «Scala in Goozy»
Introduction To JavaScript

What's hot (20)

PPTX
Groovy features
PDF
Gatling Performance Workshop
PPTX
JavaScript Basics
PPT
Javascript Basics
PPT
Java ppts unit1
PPTX
Byteman - Carving up your Java code
PPTX
Chapter 1.3
PPTX
Getting anypoint studios all versions
ODP
Practical byteman sample 20131128
PDF
"Scala in Goozy", Alexey Zlobin
PPTX
Features of JAVA Programming Language.
PPTX
Deploying and Running in Mule
PPT
JavaScript Introduction
PPTX
Easy java installation & practice
PPTX
Mpl 1
PDF
Ember.js Brussels Meetup #3 - Testing your Ember.js app
ODP
[EclipseCon NA 2014] Integration tests for RCP made easy with SWTBot and Tycho
PDF
Codeception presentation
PDF
Core Java Tutorial
PPTX
The Java Story
Groovy features
Gatling Performance Workshop
JavaScript Basics
Javascript Basics
Java ppts unit1
Byteman - Carving up your Java code
Chapter 1.3
Getting anypoint studios all versions
Practical byteman sample 20131128
"Scala in Goozy", Alexey Zlobin
Features of JAVA Programming Language.
Deploying and Running in Mule
JavaScript Introduction
Easy java installation & practice
Mpl 1
Ember.js Brussels Meetup #3 - Testing your Ember.js app
[EclipseCon NA 2014] Integration tests for RCP made easy with SWTBot and Tycho
Codeception presentation
Core Java Tutorial
The Java Story
Ad

Viewers also liked (14)

PDF
The applicationform
PDF
ITFT- C,c++,java and world wide web
DOCX
Membuat aplikasi sederhana menggunakan java
PDF
Dasar dasar netbeans
PDF
itft-Inheritance in java
PPTX
Materi Dasar JAVA Programming
PDF
Seri Belajar Mandiri – Pemrograman Java Untuk Pemula
DOCX
contoh Program sederhana Java dan penjelasan programnya
PDF
Belajar netbeans java pemula dari 0 sampai mahir
PPTX
Inheritance
PDF
Introduction to Java Programming Language
PPTX
Mathematics
PDF
Constants, Variables and Data Types in Java
PDF
Methods in Java
The applicationform
ITFT- C,c++,java and world wide web
Membuat aplikasi sederhana menggunakan java
Dasar dasar netbeans
itft-Inheritance in java
Materi Dasar JAVA Programming
Seri Belajar Mandiri – Pemrograman Java Untuk Pemula
contoh Program sederhana Java dan penjelasan programnya
Belajar netbeans java pemula dari 0 sampai mahir
Inheritance
Introduction to Java Programming Language
Mathematics
Constants, Variables and Data Types in Java
Methods in Java
Ad

Similar to itft-Overview of java language (20)

PPTX
Java introduction
PPT
Java introduction
PPTX
Chapter 2.1
PPT
Javalecture 1
PPTX
Pj01 2-install java and write first java program
PDF
Introduction to java technology
PDF
PPTX
1.introduction to java
PPTX
JAVA PROGRAMING NOTE FOR BEGINNERS 20242
PDF
Java Programming Fundamentals: Complete Guide for Beginners
PDF
B.Sc. III(VI Sem) Advance Java Unit2: Appet
PDF
How to write a simple java program in 10 steps
PPTX
java intro.pptx
PDF
Hello World Program in Java .pdf
PPTX
Introduction to java
DOCX
Introduction to java programming tutorial
PDF
Lecture java01
PDF
Java programming material for beginners by Nithin, VVCE, Mysuru
PPTX
basic core java up to operator
PPT
Introduction to java programming part 1
Java introduction
Java introduction
Chapter 2.1
Javalecture 1
Pj01 2-install java and write first java program
Introduction to java technology
1.introduction to java
JAVA PROGRAMING NOTE FOR BEGINNERS 20242
Java Programming Fundamentals: Complete Guide for Beginners
B.Sc. III(VI Sem) Advance Java Unit2: Appet
How to write a simple java program in 10 steps
java intro.pptx
Hello World Program in Java .pdf
Introduction to java
Introduction to java programming tutorial
Lecture java01
Java programming material for beginners by Nithin, VVCE, Mysuru
basic core java up to operator
Introduction to java programming part 1

More from Atul Sehdev (7)

PDF
itft-Operators in java
PDF
itft-Java evolution
PDF
itft-Fundamentals of object–oriented programming in java
PDF
itft-Decision making and branching in java
PDF
ITFT-Constants, variables and data types in java
PDF
ITFT-Classes and object in java
PDF
ITFT- Applet in java
itft-Operators in java
itft-Java evolution
itft-Fundamentals of object–oriented programming in java
itft-Decision making and branching in java
ITFT-Constants, variables and data types in java
ITFT-Classes and object in java
ITFT- Applet in java

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Institutional Correction lecture only . . .
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Cell Structure & Organelles in detailed.
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
RMMM.pdf make it easy to upload and study
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Basic Mud Logging Guide for educational purpose
PDF
Computing-Curriculum for Schools in Ghana
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Pre independence Education in Inndia.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Institutional Correction lecture only . . .
STATICS OF THE RIGID BODIES Hibbelers.pdf
Microbial disease of the cardiovascular and lymphatic systems
PPH.pptx obstetrics and gynecology in nursing
Cell Structure & Organelles in detailed.
Microbial diseases, their pathogenesis and prophylaxis
RMMM.pdf make it easy to upload and study
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
Sports Quiz easy sports quiz sports quiz
Basic Mud Logging Guide for educational purpose
Computing-Curriculum for Schools in Ghana
Abdominal Access Techniques with Prof. Dr. R K Mishra
2.FourierTransform-ShortQuestionswithAnswers.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Pre independence Education in Inndia.pdf

itft-Overview of java language

  • 2. Contents • Introduction • Simple Java Program • More of Java • An application With Two classes
  • 3. Introduction • JAVA is a general purpose object oriented language. • We can develop two types of JAVA programs:- • Stand-alone Application:- these are java programs that are used to carry out a certain task at a stand- alone local computer. • Web Applets:- Web applets are the small java programs used to develop web applications.
  • 4. Introduction continue.. • Executing a Stand- alone application involve two steps • Compile the source code into byte code(javac compiler). • Executing the byte code program(java interpreter). • Executing a Web Applets also involve two steps • Compile the source code into byte code(javac compiler). • Executing the byte code with java enabled browser.
  • 5. Simple Java Program • Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram { /* This is my first java program. This will print 'Hello World' as the output */ public static void main(String []args) { System.out.println("Hello World");//prints Hello World } }
  • 6. Simple Java Program • Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram  Class Declaration { /* This is my first java program. This will print 'Hello World' as the output */ public static void main(String []args) { System.out.println("Hello World");//prints Hello World } }
  • 7. Simple Java Program • Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram  Class Declaration {  Opening Brace /* This is my first java program. This will print 'Hello World' as the output */ public static void main(String []args) { System.out.println("HelloWorld");//prints HelloWorld } }
  • 8. Simple Java Program • Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram  Class Declaration {  Opening Brace /* This is my first java program. This will print 'Hello World' as the output */ public static void main(String []args)  the main line { System.out.println("HelloWorld");//prints HelloWorld } }
  • 9. Simple Java Program • Let us look at a simple code that would print the words Hello World. public class MyFirstJavaProgram  Class Declaration {  Opening Brace /* This is my first java program. This will print 'Hello World' as the output */ public static void main(String []args)  the main line { System.out.println("HelloWorld");//prints HelloWorld  output line } }
  • 10. More of java import java.lang.Math; public class Exercise { public static void main(String[] args) { double x = 16; double y; y= Math.sqrt(x); System.out.println("The square root of " +y); } }
  • 11. More of java import java.lang.Math; public class Exercise { public static void main(String[] args) { double x = 16; double y; y= Math.sqrt(x);  math function System.out.println("The square root of " +y); } }
  • 12. An application With Two classes class Room { float length; float breadth; void getdata(float a, float b) { length= a; breadth= b; } }
  • 13. Continue.. class RoomArea { public static void main(String args[]) { float area; Room room1= new Room (); //creates an object room1 room1.getdata(14,10);//assign value to length and breadth area = room1.length * room1.breadth; System.out.println(“Area =”+area); } }