Android apps to use in appium android test examples


Friday, August 10, 2018

Introduction to Java

Introduction to Java

i) Introducing Java Programming Language

ii) Java Environment Setup

iii) Java Program Structure
i) Introducing Java Programming Language

> Java Programming Language was developed at Lord's Day Microsystems inwards 1991 (The offset publicly available version of Java (Java 1.0) released inwards 1995, Now it is subsidiary of Oracle corporation.

> Java is an Object oriented Programming language, In Java every affair is object, coffee tin hold out easily extended since it is based on Object model.

> Java is a Platform independent language, it tin hold out compiled together with Interpreted.

> Java is simple, slow to acquire together with implement.

> Java is Securable, using Java nosotros tin railroad train virus costless together with tamper costless systems.
Usage of Java

> To railroad train Desktop Applications (ex: Acrobat Reader)

> To railroad train Web Applications

> To railroad train Enterprise Applications (Ex: Banking, Insurance Applications etc...)

> To railroad train Mobile Applications

> To railroad train Embedded Systems.

> Smart Cards

> Games software etc...
> Test Automation
Java Syntax Rules

> Java is a illustration sensitive language.

> First missive of the alphabet of Class mention should hold out inwards Upper case.

> Method names should laid about amongst lower illustration letter.

> Java plan file mention should just fit amongst shape name.

> Java plan execution starts from primary method, which is mandatory inwards every Java program.

> Every statement/step should halt amongst semi colon symbol.

> Code blocks enclosed amongst {}.
ii) Java Environment Setup


1) Download Java Software (JDK) together with Install.

2) Set Environment Variable path (Path variable)

3) Download Eclipse IDE together with extract
Download Java (JDK) Software from either or, together with Install.

After Java Installation together with then y'all tin decease Java folder inwards C:\Program Files.
Set Environment Variable path (Path variable)


First guide maintain jdk bin directory path

Select MyComputer together with correct click
> Properties
> Advanced System Settings
> Environment Variables
> Select Path variable from organisation variables
> Edit
> Paste coffee bin directory path inwards variable value field
> OK
> Ok
> Close
1) write together with execute a Java plan using ascendance promt.

2) write together with execute a Java plan using Eclipse IDE.
1) write together with execute a Java plan using ascendance prompt.

In Computer Programming nosotros guide maintain iii steps.

i) Write Program

ii) Compile the Program

iii) Run / Execute the program.
Step 1: Write a Program

public shape Sample {
public static void primary (String [] args) {
System.out.println ("Hello Java World");
Step 2: Compile the Program

> Launch Command prompt
> Chang to Java plan file directory.
> Type javac

* It creates Java shape file
Step 3: Run / Execute the program.

Type coffee Sample

Then it display the Output on the Console.
2) write together with execute a Java plan using Eclipse IDE.

Eclipse IDE (Integrated Development Environment)

> Eclipse IDE is a platform to write together with execute estimator programs similar Java, Perl, Python, Ruby, PHP etc...

> Eclipse IDE is opened upwards source.

> It provides Editor for writing programs, Syntax guidence, Context help, car compilation etc...
Steps to Write together with Execute a Java Program using Eclipse IDE :

> Launch Eclipse IDE

> Create Java Project

> Create Java Package

> Create Java Class

Write Java Program together with Run.

Note: Eclipse IDE provides car compilation facility.
A Sample Java Program

package abcd;
public shape Smitha {
public static void main(String[] args) {
int a = 100;
System.out.println("Hello Java");


No comments:

Post a Comment