Android apps to use in appium android test examples

Breaking

Wednesday, June 6, 2018

Overview of Java Language

Overview of Java Language

1) What is Java?
2) Editions of Java (Parts of Java)
3) Java Language Fundamentals
----------------------------------------
1) What is Java?

> Java is a Programming Language too a Platform (Software Platform)
> Java is used equally a Programming Language to prepare Software Applications, too It is used equally Software platform
to run Java Applications,

For Development (Software Application Development) role JDK (Java Development Kit (JRE (JVM))
For Software Platform role JRE (JVM) 
--------------------------------------------------------------------
2) Editions of Java (Parts of Java)

Java has iii of import Editions,
i) Java Standard Edition (JSE) Or Core Java (* Old mention is J2SE)
ii) Java Enterprise Edition Or Advanced Java (* Old mention is J2EE)
iii) Java Micro Edition (* Old mention is J2ME)
------------------------------------------------------------
* Java Standard Edition or Core Java is sufficient for Selenium (Test Automation)
-----------------------------------------------------------------------------------------
3) Java Language Fundamentals

i) Comments
ii) Data Types
iii) Modifiers
iv) Variables
v) Operators
vi) Control Flow Statements
a) Conditional Statements
b) Loop Statements
c) Branching Statements
vii) Strings
viii) Arrays
ix) IO Operations, too File Handling
x) Java Methods (Predefined or Built-in Methods, too User defined                         Methods)
xi) Exception handling
xii) Java OOPS (Object Oriented Programming System)
a) Inheritance
b) Polymorphism
c) Abstraction
d) Encapsulation
Object, Class, Interface, Package, Project....
------------------------------------------------------------------------
Java Language Fundamentals

i) Comments inward Java

        > To brand the code Readable
> To brand the code disable from Execution

Note: Java supports unmarried trace of piece of job comment too multiple trace of piece of job comments
-------------------------------------------
ii) Data Types inward Java

A Data Type is a classification of the Type of Data that a variable or Object tin concur inward Computer programming,

Examples:
Character,
Integer,
String,
Float,
Boolean etc...
Java supports 2 Categories of Data Types,
i) Primitive Data Types,
ii) Non Primitive Data Types / Reference Data Types
-----------------------------------------------------------
iii) Java Modifiers

Modifiers are used to laid upwards access levels for Classes, Variables, too Methods....

Java supports 2 categories of modifiers

i) Access Modifiers (default, public, private, too protected)
ii) Non - Access Modifiers (static, final, abstract,....)
-----------------------------------------------------------------
iv) Variables inward Java

A named retentivity llocation to concur / shop temporary information inside a program,

Java supports iii types of Varaibles,
i) Local Variables
ii) Instance Variables
iii) Static / Class Variables
Note: Java supports explicit proclamation of Variables.
------------------------------------------------------------
In Java

int a;
a=100; 
----------------------
b=200; //Error inward Java
----------------------------------
In VBScript

Dim a
a =100
----------------------------------------
b=200 'Correct inward VBScript
--------------------------------------------------------------------
v) Operators inward Java

1) Operators are used to perform Mathematical, Comparison, too Logical operations

Categories of Operators

i) Arithmetic Operators
ii) Assignment Operators
iii) Relational Operators
iv) Logical Operators
v) Bitwise Operators
vi) Miscellaneous Operators
etc...
-----------------------------------------------------------------------------
vi) Java Control Flow Statements
a) Conditional Statements (Ex: if...)
b) Loop Statements (Ex: for...)
c) Branching Statements (Ex: break...)
------------------------------------------
a) Java Conditional Statements

1) Two Types of Conditional Statements

i) if statement
ii) switch statement
---------------------------------
2) Three Types of Conditions

i) Single Condition (Positive/Negative Condition)
ii) Compound / Multiple Condition (Positive/Negative Condition)
iii) Nested Condition (Positive/Negative Condition)

3) Usage of Conditional Statements

i) Execute a block of Statements when status is true
ii) Execute a block of statements when status is truthful otherwise execute around other block of statements
iii) Execute a block of statements when a chemical compound status is truthful otherwise execute around other block of statements
iv) Decide with several alternates (else if)
v) Execute a block of statements when to a greater extent than than i status is truthful (nested if)
vi)  Decide with several alternates (using switch statement)
----------------------------------------------------------------------

Sumber http://www.gcreddy.com/

No comments:

Post a Comment