Introduction to Java
i) Introducing Java Programming Language
ii) Java Environment Setup
iii) Java Program Structure/Java Syntax
------------------------------------------------
i) Introducing Java Programming Language
> Java Programming Language was developed past times Dominicus Microsystems inward 1995, Now it is subsidiary of Oracle corporation.
> Java is an Object Oriented Programming Language, In Java everything is object, Java tin mail away survive easily extended since it is based on the object model.
> Java is a Platform independent language, It tin mail away survive compiled as well as interpreted.
> Java is Simple slow to larn as well as implement.
> Java is Securable, Using Java nosotros tin mail away prepare virus costless as well as tamper costless systems.
---------------------
Usage of Java
> Developing Desktop Applications (Ex: Acrobat Reader)
> Developing spider web Applications
> Developing Enterprise Application (Ex: Banking, Insurance Applications etc...)
> Developing Mobile Applications
> Developing Embedded Systems.
> Smart Cards
> Games software etc...
----------------------
> Test Automation
--------------------------------------
Java Syntax Rules
> Java is illustration sensitive language
> First missive of the alphabet of Class Name should survive inward Upper case
> Method names should starting fourth dimension amongst lower illustration letter.
> Java plan file elevate should just stand upwardly for amongst course of written report name.
> Java Program execution starts from original method, which is mandatory inward every Java program.
> Every Statement should terminate amongst semi colon symbol.
> Code blocks enclosed amongst {}
------------------------------------------------
ii) Java Environment Setup
Steps:
> Download Java Software (JDK) as well as Install.
> Set Environment Variable (Path Variable).
> Download Eclipse IDE as well as Extract.
-------------------------------------
In Computer Programming nosotros accept Three steps
i) Writing a Program.
ii) Compiling the Program
iii) Run /Execute the Program
Step 1: Writing a Program.
public course of written report Sample{
public static void main(String [] args) {
System.out.println ("Hello Java World");
}
}
-----------------------
Step 2: Compiling the Program
Change to Java plan file directory.
Type javac Sample.java
(* it creates Java course of written report file)
----------------------------------
Step 3: Run /Execute the Java program
Type coffee Sample
------------------------------------------------
In Test Automation using Selenium, nosotros role an Integrated Development Environment (IDE) like
Eclipse IDE.
> Eclipse IDE (Integrated Development Environment)
> Eclipse IDE is a platform to practise as well as Run /execute programs similar Java, Perl, Python,
Ruby, PHP etc...
> Eclipse IDE is opened upwardly rootage (eclipse Public License)
It provides Editor, tending for Syntax, context help, automobile compilation, debugging etc....
----------------------------------------------
Download Eclipse IDE as well as Extract.
Write as well as Execute a Java plan using Eclipse IDE
Steps:
> Launch Eclipse IDE
> Create Java Project
> Create Java Package
> Create Java Class
Write Java code inward the Class file as well as Run
------------------------------------------------
i) Introducing Java Programming Language
ii) Java Environment Setup
iii) Java Program Structure/Java Syntax
------------------------------------------------
i) Introducing Java Programming Language
> Java Programming Language was developed past times Dominicus Microsystems inward 1995, Now it is subsidiary of Oracle corporation.
> Java is an Object Oriented Programming Language, In Java everything is object, Java tin mail away survive easily extended since it is based on the object model.
> Java is a Platform independent language, It tin mail away survive compiled as well as interpreted.
> Java is Simple slow to larn as well as implement.
> Java is Securable, Using Java nosotros tin mail away prepare virus costless as well as tamper costless systems.
---------------------
Usage of Java
> Developing Desktop Applications (Ex: Acrobat Reader)
> Developing spider web Applications
> Developing Enterprise Application (Ex: Banking, Insurance Applications etc...)
> Developing Mobile Applications
> Developing Embedded Systems.
> Smart Cards
> Games software etc...
----------------------
> Test Automation
--------------------------------------
Java Syntax Rules
> Java is illustration sensitive language
> First missive of the alphabet of Class Name should survive inward Upper case
> Method names should starting fourth dimension amongst lower illustration letter.
> Java plan file elevate should just stand upwardly for amongst course of written report name.
> Java Program execution starts from original method, which is mandatory inward every Java program.
> Every Statement should terminate amongst semi colon symbol.
> Code blocks enclosed amongst {}
------------------------------------------------
ii) Java Environment Setup
Steps:
> Download Java Software (JDK) as well as Install.
> Set Environment Variable (Path Variable).
> Download Eclipse IDE as well as Extract.
-------------------------------------
In Computer Programming nosotros accept Three steps
i) Writing a Program.
ii) Compiling the Program
iii) Run /Execute the Program
Step 1: Writing a Program.
public course of written report Sample{
public static void main(String [] args) {
System.out.println ("Hello Java World");
}
}
-----------------------
Step 2: Compiling the Program
Change to Java plan file directory.
Type javac Sample.java
(* it creates Java course of written report file)
----------------------------------
Step 3: Run /Execute the Java program
Type coffee Sample
------------------------------------------------
In Test Automation using Selenium, nosotros role an Integrated Development Environment (IDE) like
Eclipse IDE.
> Eclipse IDE (Integrated Development Environment)
> Eclipse IDE is a platform to practise as well as Run /execute programs similar Java, Perl, Python,
Ruby, PHP etc...
> Eclipse IDE is opened upwardly rootage (eclipse Public License)
It provides Editor, tending for Syntax, context help, automobile compilation, debugging etc....
----------------------------------------------
Download Eclipse IDE as well as Extract.
Write as well as Execute a Java plan using Eclipse IDE
Steps:
> Launch Eclipse IDE
> Create Java Project
> Create Java Package
> Create Java Class
Write Java code inward the Class file as well as Run
------------------------------------------------