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
LECTURE 2 -Object oriented Java Basics.pptx
PPT
JAVA_BASICS.ppt
PPT
Jacarashed-1746968053-300050282-Java.ppt
PPT
JAVA_BASICS_Data_abstraction_encapsulation.ppt
PPTX
Multi Threading- in Java WPS Office.pptx
PDF
java 1 new.pdf
PPT
java01.ppt
PDF
Java Programming
PPTX
VMC___JAVA-THIRD QUARTER-SHS TWELVE.pptx
PPTX
Java tutorial for beginners-tibacademy.in
PPT
Java PPt.ppt
PPTX
JAVA PROGRAMING NOTE FOR BEGINNERS 20242
PPT
Chapter 1 java
PPTX
Introduction to java
PPTX
lecture 6
PPTX
Introduction to computer science
PPTX
Intro to programing with java-lecture 1
PPT
Java introduction
PPTX
Chapter 2.1
PPT
java development companies in Bangalore
LECTURE 2 -Object oriented Java Basics.pptx
JAVA_BASICS.ppt
Jacarashed-1746968053-300050282-Java.ppt
JAVA_BASICS_Data_abstraction_encapsulation.ppt
Multi Threading- in Java WPS Office.pptx
java 1 new.pdf
java01.ppt
Java Programming
VMC___JAVA-THIRD QUARTER-SHS TWELVE.pptx
Java tutorial for beginners-tibacademy.in
Java PPt.ppt
JAVA PROGRAMING NOTE FOR BEGINNERS 20242
Chapter 1 java
Introduction to java
lecture 6
Introduction to computer science
Intro to programing with java-lecture 1
Java introduction
Chapter 2.1
java development companies in Bangalore

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)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Institutional Correction lecture only . . .
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Lesson notes of climatology university.
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
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 Đ...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
Institutional Correction lecture only . . .
Basic Mud Logging Guide for educational purpose
Lesson notes of climatology university.
FourierSeries-QuestionsWithAnswers(Part-A).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 Đ...
Renaissance Architecture: A Journey from Faith to Humanism
2.FourierTransform-ShortQuestionswithAnswers.pdf
Insiders guide to clinical Medicine.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharma ospi slides which help in ospi learning
Sports Quiz easy sports quiz sports quiz
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.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); } }