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:-   

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 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



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


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


private string str ;

// global declaration

public string str1;

protected string str2;


 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


public void sample*(string 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”); }


The selenium commands offer called as selene's.

For in-depth knowledge on Selenium, click on below