SlideShare a Scribd company logo
JAVA
TajendarArora
OBJECTIVES
 What is Java?
 Why Java?
 Java System overview and Types of programs in java
 JVM
 JDK
 Primitive Data types in java
 Expressions in java
 Control Statements
 Naming conventions
 Arrays
 For-each loop
 Type casting
 Build first basic java program
 Command Line Arguments
TajendarArora
JAVA
 Java is high level programming language
introduced by Sun Microsystems in June 1995.
 Java is an object oriented language built upon C
& C++, It derived its object oriented features
from C++.
 The Java language has undergone several
changes since JDK 1.0 (1996) and now JSE 7 is
latest.
*jdk- Java Development Kit
*JSE- Java Standard Ediiton
TajendarArora
WHY JAVA
 Object-oriented
 Platform independent
 Built-in support for multi-threading, socket
communication and memory management
 Supports Web based applications (Applet,
Servlets and JSP)
 Vast library of predefined objects and operations
 Secure
TajendarArora
Tajendar Arora
JAVA FEATURES
 Simple and object oriented
 Look and feel of C
 Simplified object modeling
 Portability
 Java compiler generates byte codes
 Runtime systems for various platforms
 Size and behavior of basic data types defined
 Write once, run/debug anywhere
Tajendar Arora
JAVA FEATURES CONT.
 Availability
 Windows, Linux, Solaris,…
 Embedded systems
 Compiler and runtime are free
 Free IDEs: Eclipse, Netbeans
 Library
 Rich class library
 Part of the definition
 Standard GUI toolkit
Tajendar Arora
JAVA FEATURES CONT.
 Built-in model for concurrency
 Threads at the language level
 Synchronization
 Safety
 No Pointer!
 Automatic memory management – GC
 Networking
 Web Enabled
Tajendar Arora
JAVA SYSTEM OVERVIEW
APPLETS , SERVLETS AND APPLICATION
 An applet is designed to be embedded in a Web
page, and run by a browser.
 A servlet is designed to be run by a web server
which act as controller for we application.
 An application is a conventional standalone
program.
TajendarArora
Tajendar Arora
WHAT IS A VIRTUAL MACHINE?
 A virtual machine (VM) is an abstract computer
architecture
 Software on top of a real hardware
 Can run the same application on different
machines where the VM is available
Tajendar Arora
JVM CONT.
 Runtime environment for Java
 Implementation NOT defined
 Runs Java .class files
 Has to conform to Sun‘s specification
JDK DIRECTORY STRUCTURE
(JAVA INSTALLATIONS)
Assuming the JDK software is installed at /jdk1.7.0, here are
some of the most important directories:
/jdk1.7.0Root directory of the JDK software installation.
Contains copyright, license, and README files.
./jdk1.7.0/binExecutables for all the development tools
contained in the JDK. The PATH environment variable
should contain an entry for this directory.
/jdk1.7.0/lib Files used by the development tools.
Includes tools.jar, which contains non-core classes for support
of the tools and utilities in the JDK.
/jdk1.7.0/jre Root directory of the Java runtime environment
used by the JDK development tools. The runtime environment
is an implementation of the Java platform.
TajendarArora
PRIMITIVE DATA TYPES
 Main data types are int, double, boolean,
char
 Also have byte, short, long, float
 boolean has values true and false
 Variable Declarations look like,
 double x, y;
 int count = 0;
TajendarArora
EXPRESSIONS
 Assignment statements mostly look like those in
C; you can use =, +=, *= etc.
 Arithmetic uses the familiar + - * / %
 Java also has ++ and --
 Java has boolean operators && || !
 Java has comparisons < <= == != >= >
 Java does not have pointers or pointer arithmetic
TajendarArora
CONTROL STATEMENTS
•if (x < y) smaller = x;
•if (x < y){ smaller=x;sum += x;}
else { smaller = y; sum += y; }
•while (x < y) { y = y - x; }
•do { y = y - x; } while (x < y)
•for (int i = 0; i < max; i++) sum += i;
BUT: conditions must be boolean
TajendarArora
NAMING CONVENTIONS
Java is case-sensitive; maxval, maxVal, and
MaxVal are three different names Class names
begin with a capital letter All other names begin
with a lowercase letter Subsequent words are
capitalized: theBigOne Underscores are not used
in names,
These are very strong conventions.
TajendarArora
ARRAYS IN JAVA
 Java provides a data structure, the array, which
stores a fixed-size sequential collection of elements of
the same type. An array is used to store a collection of
data.
 Declare array
 dataType[] arrayRefVar; // preferred way.
 Creating Arrays:
 You can create an array by using the new operator
with the following syntax:
 arrayRefVar = new dataType[arraySize]; The above
statement does two things:
 It creates an array using new dataType[arraySize];
 It assigns the reference of the newly created array to
the variable arrayRefVar.
TajendarArora
FOR EACH LOOP FOR ARRAYS IN JAVA
 Since JDK 1.5 introduced a new for loop known
as foreach loop or enhanced for loop, which
enables you to traverse the complete array
sequentially without using an index variable.
 Example:
 The following code displays all the elements in
the array myList:
 public class TestArray {
 public static void main(String[] args) {
 double[] myList = {1.9, 2.9, 3.4, 3.5};
 // Print all the array elements
 for (double element: myList)
 { System.out.println(element);
 } } }
TajendarArora
TYPE CASTING IN JAVA
 Assigning a value of one type to a variable of
another type is known as Type Casting.
 In Java, type casting is classified into two types,
 Widening Casting(Implicit)
 Narrowing Casting(Explicitly done)

TajendarArora
TYPE CASTING IN JAVA
 Widening or Automatic type converion
 Automatic Type casting take place when,the two
types are compatible
 the target type is larger than the source type
 Example :
 int i = 100;
 long l = i;
 Narrowing or Explicit type conversion
 When you are assigning a larger type value to a
variable of smaller type, then you need to perform
explicit type casting.
 double d = 100.04;
 long l = (long)d;
 //explicit type casting required int i = (int)l;
TajendarArora
BUILDING STANDALONE JAVA PROGRAMS
 We can use different IDEs as well
 IDEs are more complex and have visual Java
development tools, tight integration with the
compiler or application server, and may include
tools for debugging, refactoring, version control,
and so forth. Some examples below
 Eclipse
 NetBeans
 BjueJ
 Jbuilder
TajendarArora
BUILDING STANDALONE JAVA PROGRAMS
 Prepare the file First.java using an editor
 /*
 This is a simple Java program.*/
 class First
 {
 public static void main(String args[])
 {
 System.out.println("This is a simple Java program.");
 }
 }
 Invoke the compiler: javac First.java
 This creates First.class
 Run the java interpreter: java First
 println is a member function for the System.out class
 String is built in class
* File name should be First.java
TajendarArora
COMMAND LINE ARGUMENTS
 A command-line argument is the information
that directly follows the program’s name on the
command line when it is executed. To access the
command-line arguments inside a Java program
is quite easy—they are stored as strings in the
String array passed to main( ).
 class CommandLine {
 public static void main(String args[]) {
 for(int i=0; i<args.length; i++)
 System.out.println("args[" + i + "]: " +args[i]);
 }
 }
 * length returns the length of array
TajendarArora
Thank you
TajendarArora

More Related Content

What's hot (20)

PPTX
Java 101 intro to programming with java
Hawkman Academy
 
PPT
Fundamentals of oop lecture 2
miiro30
 
PPT
Presentation on java
shashi shekhar
 
PPT
Hibernate introduction
Sagar Verma
 
PPT
Java basic
Arati Gadgil
 
PPTX
1_JavIntro
SARJERAO Sarju
 
PPS
Advance Java
Vidyacenter
 
PDF
Core Java
Prakash Dimmita
 
PPT
Fundamentals of JAVA
KUNAL GADHIA
 
PPTX
Java training in delhi
APSMIND TECHNOLOGY PVT LTD.
 
PPSX
Core java lessons
vivek shah
 
PPSX
Java &amp; advanced java
BASAVARAJ HUNSHAL
 
PPSX
Elements of Java Language
Hitesh-Java
 
PPT
Basics of java programming language
masud33bd
 
PDF
Basic java tutorial
Pedro De Almeida
 
PPTX
Java basic-tutorial for beginners
Muzammil Ali
 
PDF
Java Programming - 01 intro to java
Danairat Thanabodithammachari
 
PPTX
Java 102 intro to object-oriented programming in java
agorolabs
 
PPTX
Core java1
Ravi varma
 
PPTX
PROGRAMMING IN JAVA
SivaSankari36
 
Java 101 intro to programming with java
Hawkman Academy
 
Fundamentals of oop lecture 2
miiro30
 
Presentation on java
shashi shekhar
 
Hibernate introduction
Sagar Verma
 
Java basic
Arati Gadgil
 
1_JavIntro
SARJERAO Sarju
 
Advance Java
Vidyacenter
 
Core Java
Prakash Dimmita
 
Fundamentals of JAVA
KUNAL GADHIA
 
Java training in delhi
APSMIND TECHNOLOGY PVT LTD.
 
Core java lessons
vivek shah
 
Java &amp; advanced java
BASAVARAJ HUNSHAL
 
Elements of Java Language
Hitesh-Java
 
Basics of java programming language
masud33bd
 
Basic java tutorial
Pedro De Almeida
 
Java basic-tutorial for beginners
Muzammil Ali
 
Java Programming - 01 intro to java
Danairat Thanabodithammachari
 
Java 102 intro to object-oriented programming in java
agorolabs
 
Core java1
Ravi varma
 
PROGRAMMING IN JAVA
SivaSankari36
 

Viewers also liked (14)

PDF
Introduction to Jquery
Tajendar Arora
 
PPT
Challenges confronting the police institution in ghana by evans kojo acheampong
kojokay
 
DOCX
Bus 402 week 5 discussion questions 1
tiviwader1988
 
PDF
Formação Continuada
Jakson Queiroz
 
PPTX
11.measurement
rags2richess
 
PPTX
Tal Solutions Talent Science Presentation_FINAL3
Marcia Tal
 
PDF
The Power of Legacy
Nancy L. Baumann
 
PDF
hospitality
brendan newton
 
DOCX
Bus 402 week 3 discussion questions 2
goldfeschyrssmog1977
 
PPTX
Einführung in die @4sqapi
Daniel Wiegand
 
DOC
CV CALUBAYAN LEAMOR L.
leamor calubayan
 
PPTX
Unit 27 – task 2 coachs log
taliaelisekaur
 
PPT
Global277 279
brianhayward
 
PPTX
Digital marketing-training-institute
softprostudent2
 
Introduction to Jquery
Tajendar Arora
 
Challenges confronting the police institution in ghana by evans kojo acheampong
kojokay
 
Bus 402 week 5 discussion questions 1
tiviwader1988
 
Formação Continuada
Jakson Queiroz
 
11.measurement
rags2richess
 
Tal Solutions Talent Science Presentation_FINAL3
Marcia Tal
 
The Power of Legacy
Nancy L. Baumann
 
hospitality
brendan newton
 
Bus 402 week 3 discussion questions 2
goldfeschyrssmog1977
 
Einführung in die @4sqapi
Daniel Wiegand
 
CV CALUBAYAN LEAMOR L.
leamor calubayan
 
Unit 27 – task 2 coachs log
taliaelisekaur
 
Global277 279
brianhayward
 
Digital marketing-training-institute
softprostudent2
 
Ad

Similar to Introduction to java (20)

PPT
Java SpringMVC SpringBOOT (Divergent).ppt
Aayush Chimaniya
 
PPTX
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
tusharjain613841
 
PPTX
Full CSE 310 Unit 1 PPT.pptx for java language
ssuser2963071
 
PPT
Java introduction
GaneshKumarKanthiah
 
PPTX
Java Basics 1.pptx
TouseeqHaider11
 
PPTX
COMPUTER PROGRAMMING LANGUAGE.pptx
SofiaArquero2
 
PDF
Programming in Java Unit 1 lesson Notes for Java
ssuserd0b11b
 
PPTX
Java tutorial for beginners-tibacademy.in
TIB Academy
 
PPTX
Core java
Sun Technlogies
 
PPTX
Java
Zeeshan Khan
 
PPTX
Java Basics.pptx from nit patna ece department
om2348023vats
 
PPT
INTRODUCTION TO JAVA
Pintu Dasaundhi (Rahul)
 
PDF
www.reallygreatsite.com (4).pdf
Excellence Academy
 
PPTX
Introduction to java
rishi ram khanal
 
PDF
Introduction java programming
Nanthini Kempaiyan
 
PPTX
An Overview of the Java Programming Language
Salaam Kehinde
 
PPTX
Introduction to java Programming Language
rubyjeyamani1
 
PPT
Java core - Detailed Overview
Buddha Tree
 
PPTX
Learning core java
Abhay Bharti
 
PPT
java-corporate-training-institute-in-mumbai
Unmesh Baile
 
Java SpringMVC SpringBOOT (Divergent).ppt
Aayush Chimaniya
 
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
tusharjain613841
 
Full CSE 310 Unit 1 PPT.pptx for java language
ssuser2963071
 
Java introduction
GaneshKumarKanthiah
 
Java Basics 1.pptx
TouseeqHaider11
 
COMPUTER PROGRAMMING LANGUAGE.pptx
SofiaArquero2
 
Programming in Java Unit 1 lesson Notes for Java
ssuserd0b11b
 
Java tutorial for beginners-tibacademy.in
TIB Academy
 
Core java
Sun Technlogies
 
Java Basics.pptx from nit patna ece department
om2348023vats
 
INTRODUCTION TO JAVA
Pintu Dasaundhi (Rahul)
 
www.reallygreatsite.com (4).pdf
Excellence Academy
 
Introduction to java
rishi ram khanal
 
Introduction java programming
Nanthini Kempaiyan
 
An Overview of the Java Programming Language
Salaam Kehinde
 
Introduction to java Programming Language
rubyjeyamani1
 
Java core - Detailed Overview
Buddha Tree
 
Learning core java
Abhay Bharti
 
java-corporate-training-institute-in-mumbai
Unmesh Baile
 
Ad

Recently uploaded (20)

PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
grade 5 lesson ENGLISH 5_Q1_PPT_WEEK3.pptx
SireQuinn
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
Dimensions of Societal Planning in Commonism
StefanMz
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
grade 5 lesson ENGLISH 5_Q1_PPT_WEEK3.pptx
SireQuinn
 

Introduction to java

  • 2. OBJECTIVES  What is Java?  Why Java?  Java System overview and Types of programs in java  JVM  JDK  Primitive Data types in java  Expressions in java  Control Statements  Naming conventions  Arrays  For-each loop  Type casting  Build first basic java program  Command Line Arguments TajendarArora
  • 3. JAVA  Java is high level programming language introduced by Sun Microsystems in June 1995.  Java is an object oriented language built upon C & C++, It derived its object oriented features from C++.  The Java language has undergone several changes since JDK 1.0 (1996) and now JSE 7 is latest. *jdk- Java Development Kit *JSE- Java Standard Ediiton TajendarArora
  • 4. WHY JAVA  Object-oriented  Platform independent  Built-in support for multi-threading, socket communication and memory management  Supports Web based applications (Applet, Servlets and JSP)  Vast library of predefined objects and operations  Secure TajendarArora
  • 5. Tajendar Arora JAVA FEATURES  Simple and object oriented  Look and feel of C  Simplified object modeling  Portability  Java compiler generates byte codes  Runtime systems for various platforms  Size and behavior of basic data types defined  Write once, run/debug anywhere
  • 6. Tajendar Arora JAVA FEATURES CONT.  Availability  Windows, Linux, Solaris,…  Embedded systems  Compiler and runtime are free  Free IDEs: Eclipse, Netbeans  Library  Rich class library  Part of the definition  Standard GUI toolkit
  • 7. Tajendar Arora JAVA FEATURES CONT.  Built-in model for concurrency  Threads at the language level  Synchronization  Safety  No Pointer!  Automatic memory management – GC  Networking  Web Enabled
  • 9. APPLETS , SERVLETS AND APPLICATION  An applet is designed to be embedded in a Web page, and run by a browser.  A servlet is designed to be run by a web server which act as controller for we application.  An application is a conventional standalone program. TajendarArora
  • 10. Tajendar Arora WHAT IS A VIRTUAL MACHINE?  A virtual machine (VM) is an abstract computer architecture  Software on top of a real hardware  Can run the same application on different machines where the VM is available
  • 11. Tajendar Arora JVM CONT.  Runtime environment for Java  Implementation NOT defined  Runs Java .class files  Has to conform to Sun‘s specification
  • 12. JDK DIRECTORY STRUCTURE (JAVA INSTALLATIONS) Assuming the JDK software is installed at /jdk1.7.0, here are some of the most important directories: /jdk1.7.0Root directory of the JDK software installation. Contains copyright, license, and README files. ./jdk1.7.0/binExecutables for all the development tools contained in the JDK. The PATH environment variable should contain an entry for this directory. /jdk1.7.0/lib Files used by the development tools. Includes tools.jar, which contains non-core classes for support of the tools and utilities in the JDK. /jdk1.7.0/jre Root directory of the Java runtime environment used by the JDK development tools. The runtime environment is an implementation of the Java platform. TajendarArora
  • 13. PRIMITIVE DATA TYPES  Main data types are int, double, boolean, char  Also have byte, short, long, float  boolean has values true and false  Variable Declarations look like,  double x, y;  int count = 0; TajendarArora
  • 14. EXPRESSIONS  Assignment statements mostly look like those in C; you can use =, +=, *= etc.  Arithmetic uses the familiar + - * / %  Java also has ++ and --  Java has boolean operators && || !  Java has comparisons < <= == != >= >  Java does not have pointers or pointer arithmetic TajendarArora
  • 15. CONTROL STATEMENTS •if (x < y) smaller = x; •if (x < y){ smaller=x;sum += x;} else { smaller = y; sum += y; } •while (x < y) { y = y - x; } •do { y = y - x; } while (x < y) •for (int i = 0; i < max; i++) sum += i; BUT: conditions must be boolean TajendarArora
  • 16. NAMING CONVENTIONS Java is case-sensitive; maxval, maxVal, and MaxVal are three different names Class names begin with a capital letter All other names begin with a lowercase letter Subsequent words are capitalized: theBigOne Underscores are not used in names, These are very strong conventions. TajendarArora
  • 17. ARRAYS IN JAVA  Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data.  Declare array  dataType[] arrayRefVar; // preferred way.  Creating Arrays:  You can create an array by using the new operator with the following syntax:  arrayRefVar = new dataType[arraySize]; The above statement does two things:  It creates an array using new dataType[arraySize];  It assigns the reference of the newly created array to the variable arrayRefVar. TajendarArora
  • 18. FOR EACH LOOP FOR ARRAYS IN JAVA  Since JDK 1.5 introduced a new for loop known as foreach loop or enhanced for loop, which enables you to traverse the complete array sequentially without using an index variable.  Example:  The following code displays all the elements in the array myList:  public class TestArray {  public static void main(String[] args) {  double[] myList = {1.9, 2.9, 3.4, 3.5};  // Print all the array elements  for (double element: myList)  { System.out.println(element);  } } } TajendarArora
  • 19. TYPE CASTING IN JAVA  Assigning a value of one type to a variable of another type is known as Type Casting.  In Java, type casting is classified into two types,  Widening Casting(Implicit)  Narrowing Casting(Explicitly done)  TajendarArora
  • 20. TYPE CASTING IN JAVA  Widening or Automatic type converion  Automatic Type casting take place when,the two types are compatible  the target type is larger than the source type  Example :  int i = 100;  long l = i;  Narrowing or Explicit type conversion  When you are assigning a larger type value to a variable of smaller type, then you need to perform explicit type casting.  double d = 100.04;  long l = (long)d;  //explicit type casting required int i = (int)l; TajendarArora
  • 21. BUILDING STANDALONE JAVA PROGRAMS  We can use different IDEs as well  IDEs are more complex and have visual Java development tools, tight integration with the compiler or application server, and may include tools for debugging, refactoring, version control, and so forth. Some examples below  Eclipse  NetBeans  BjueJ  Jbuilder TajendarArora
  • 22. BUILDING STANDALONE JAVA PROGRAMS  Prepare the file First.java using an editor  /*  This is a simple Java program.*/  class First  {  public static void main(String args[])  {  System.out.println("This is a simple Java program.");  }  }  Invoke the compiler: javac First.java  This creates First.class  Run the java interpreter: java First  println is a member function for the System.out class  String is built in class * File name should be First.java TajendarArora
  • 23. COMMAND LINE ARGUMENTS  A command-line argument is the information that directly follows the program’s name on the command line when it is executed. To access the command-line arguments inside a Java program is quite easy—they are stored as strings in the String array passed to main( ).  class CommandLine {  public static void main(String args[]) {  for(int i=0; i<args.length; i++)  System.out.println("args[" + i + "]: " +args[i]);  }  }  * length returns the length of array TajendarArora