CORE JAVA IN SELENIUM

Ctrl+shift+ forward àcommit multiple lines

Ctrl+shift+    / àbackward  2ur commit multiple lines

String2multiple char    ex:-Mahesh

Char àsingle char        ex:-m

2java is an object-oriented programming language it contains multiple data types like int, double, float, char, string

String:-It is a class data type where it is responsible to store multiple char class. we can declare the string(object) in two ways i.e;

1)locally

2)globally

1) Locally:-   

If we declare an object locally then the scope of the object is limited to that block only.

Syntax:-      string str;  declaration Str” Rajesh”;assigning value String str1=” Mahesh”;

Methods ( or) functions:-

A Block of statements is known as method and it is acceptable for one action.

2Methods are runnable

2we can call the method any were from the class.it means we can call the method within the method also.

2the method should have a unique name

2we can declare the methods is two forwards

1)static          

2)non-static

Inclined to build a profession as Core Java Training? Then here is the blog post on, explore Core Java Training

Syntax:-

public static void method name(){

}       static Public void methodname1(){

}                                          non-static

2) Globally:-

We can declare the objects [datatypes,methods&instances] Globally by using access modifiers like public,private&protected.

  1. Public:- These can be access with in the class as well as outside of the class [out side means another class]
  2. Private:- These can be access with in the class only
  3. Protected:- These objects can be access only in child class

Syntax:-  

private string str ;

// global declaration

public string str1;

protected string str2;

Parameterization:-  

 Parameter means a value[datatype]. We can pass the parameter to the method in runtype[while execution]

Inclined to build a profession as Core Java Tutorials? Then here is the blog post on, explore Core Java Tutorials

Syntax:-

public void sample*(string s){

System.out.prinn(“welcome”+s);

} public static void main (string [] args) {

//to do auto-generated method Javabasics j=new java basics();

//object or instance j.sample 4(“Rajesh”); j.sample 4(“Mahesh”); }

Selene’s:-

The selenium commands offer called as selene's.

For in-depth knowledge on Selenium, click on below