Tuesday, 27 October 2015

Basic OOPS Concepts and Advantages

Hope All are doing Great!

In this post we will discuss about basics of OOPs.

Object Oriented Programming is an approach that provides many concepts such as inheritance, abstraction, polymorphism etc.

There were other programming languages which are based on OOPs are Simula , Smalltalk before Java era where the programs are written based on Objects.

Once Java is introduced java became the irreplaceable programming language based on OOPs.

Now let’s see what the concepts of OOPs are in brief.

1. Encapsulation - let’s see what is Encapsulation?
The concept of binding the data along with its related and corresponding functions is known as Encapsulation.

We can say Class is the base for encapsulation.

2. Inheritance - let’s see what is Inheritance?
As the name suggests, inheritance means to take something that already made.
One of the most important feature of Object oriented Programming. It is the concept that is used for re usability purpose.
Getting the properties from one class object to another class object.

3. Abstraction - let’s see what is Abstraction?
Hiding internal details and showing functionality is known as abstraction. For example: phone call, we don't know the internal processing.

In java, we use abstract class and interface to achieve abstraction.

4. Polymorphism - let’s see what is Polymorphism?

When one task is performed by different ways i.e. known as polymorphism.

For example we are human beings having similar features but with different names.

Advantages of OOPs:
OOPs make development and maintenance easier.
OOPs provide data hiding where data access can be restricted.
OOPs provide ability to simulate real-world event much more effectively. We can provide the solution of real word problem if we are using the Object-Oriented Programming language.
In OOP, programmer not only defines data types but also deals with operations applied for data structures.

In the Next post we will discuss about Object and Class.

Cheers & Happy learning,

Navatha Kannadi.



Wednesday, 14 October 2015

History and installation of Java

Hope all doing well!

Here I start with the concepts of Core Java which are helpful for the Selenium Automation.

What is Java?
    Java is a more powerful Programming language, a high level, robust, secured and object-oriented. It is markedly known for its powerful feature WORA (Write Once Run Any Where). Hence Java has its own Run Time Environment (JRE) it is widely notable as platform independent.

History of Java:
·         Originally developed by James Gosling at Sun Micro-systems (which is now a subsidiary of Oracle Corporation) and released in 1995.
·         JDK 1.0 released in January 23, 1996.
·         Java is initially named as OAK which is said to be the symbol of Strength.
·         JAVA is the name of an island in Indonesia where first coffee was produced (called java coffee).

Java Versions:
There are many java versions that have been released. Current stable release of Java is Java SE 8
JDK Alpha and Beta (1995)
JDK 1.0 (23rd Jan, 1996)
JDK 1.1 (19th Feb, 1997)
J2SE 1.2 (8th Dec, 1998)
J2SE 1.3 (8th May, 2000)
J2SE 1.4 (6th Feb, 2002)
J2SE 5.0 (30th Sep, 2004)
Java SE 6 (11th Dec, 2006)
Java SE 7 (28th July, 2011)
Java SE 8 (18th March, 2014)

How to install Java?
First and foremost check whether java is installed in your system as follows:
Go to Command Prompt and type the command "java -version" will result the current version of java installed in your system.
If java is not installed download JDK and install it.

Java programs can be executed in multiple editors here I would like to pick Notepad and Eclipse IDE (Install Eclipse IDE here)

First Sample Java program: The following is the first sample java program just open Note pad and copy the following code:
Class First Program { 
    public static void main(String args[]){ 
     System.out.println("Hello World"); 
    } 
Executing through Notepad editor:
Save this program as First_Program.java

How to compile?
javac is the command to compile. Go to Command prompt -> set the path where you have saved the Java Program ->Type the Command javac First_Program.java

How to run?
After compilation run the program: java First Program gives you the result in command prompt.

See you in Next Post with OOPs concepts :)

Cheers & Happy Learning,
Navatha Kannadi




Thursday, 8 October 2015

How to Start Up with Test Automation Using Selenium Web Driver????

When i thought of migrating from Manual/Functional Testing to Selenium Automation some years back, first thought came in my mind is How to Start? From where to start? 

Confused!!!!!!!! got lot of suggestions learn c-sharp,java,ruby,python.....


Finally i started up with learning of Core Java Concepts and finalized to learn Test Automation using Selenium Web Driver with Core Java.


Many people(without having coding knowledge) like me think Java is so tough to learn. Yes that's true initially but when you start exploring and practicing the same you will feel much more comfort and will definitely love Programming!


Here i would like to create a blog for Automation Aspirants who can easily start up with learning.


In this post i will post the Main concepts to learn in Java and will expand the concepts in detail with Examples.


Basic Core Java Concepts:



  1. What is Java and its history with Sample first "Hello World Program".
  2. Naming conventions in Java
  3. keywords in Java
  4. OOPS Concepts and Advantages
  5. Object and Class.
  6. Datatypes
  7. Conditional Statements
  8. Looping.
  9. Arrays.
  10. Static Variables and Methods
  11. Constructors.
  12. Inheritance.
  13. Polymorphism (Overloading and Overriding).
  14. Interface
  15. Abstract class
  16. super,this and final keywords.
  17. Exception Handling

       
These are the basic things we should know before stepping into Automation and there are some Advanced java concepts which i would like to cover after covering these Basic Concepts.

Cheers & Happy Learning,

Navatha Kannadi


Keywords in Java

Keywords are reserved words in java which act as a key to code and has the intent of its own use. Rules for Keywords:  Keywords should ...