What are the Default package of java, CONTROL STATEMENT,LOOPING,programs using conditional statements (EVEN NUMBER AND ODD NUMBER) to learn Selenium??
Selenium Training in Chennai
Greens Technology, Rated As Best Selenium training institute in Chennai. We provide Selenium training in Chennai with real time projects and 100% Assured Job Placements.
Learn Selenium Testing course in Chennai with the most experienced trainers in the field. Awarded as the Best Selenium Training Center in Chennai — Located in Adyar, Anna nagar, OMR, Velachery and Tambaram.
Our Selenium with Appium course syllabus includes Selenium Architecture, Selenium WebDriver 3.0, Waits, TestNG, Jenkins, Page Object Modeling [POM], Locating Techniques, AutoIT, Sikuli, Page Object Design Pattern, mobile testing with Appium and Selenium Grid and more with Live Projects — Hands on 80 hours training on Live Selenium Project
The Selenium with Appium training in Greens Technology are designed for beginners with little or no automation experience. If you are new to testing first take the Software Testing course
Default package of java:
- lang
- ctrl+2à+Là this shortcut is used to find the data type Syntax: to get the values from the user
- byteànextByte();
- ShortànextShort();
- intànextInt();
- longànextLong();
- floatànextFloat();
- doubleànextDouble();
- charànext().charAt(0);
- Stringànext();
- StringànextLine();
- booleanànextBoolean();
String:
nextLine() is used to include space String.s=sc.nextLine();
WRAPPER CLASS:
- Classes of data types is called wrapper class
- It is used to convert any data type into object
- All classes and wrapper classes default value is Null
CONTROL STATEMENT:
- if
- if.else
- else.if
variable nameà camel notation
Difference between “=” and “==”à
- = is used to assigning the value
- == is used for condition checking
Example Program:
public class IfCondition {
public static void main(String[] args) {
int empID=20;
if(empID==20){
System.out.println(“valid”);
}else {
System.out.println(“not valid”);
}
}
}
Outputà valid
- More than one condition we use for
- logical &&,//à logical && check first condition if its fail it doesn’t check second 2.Bitwise &,/à bitwise & is check both conditions
So logical && is better than bitwise
LOOPING:
- for
- while
- while
For:
Example Program:
public class ForLoop {
public static void main(String[] args) {
System.out.println(“Start”);
for (int i = 1; i <= 3; i++) {
System.out.println(i);
}
System.out.println(“End”);
}
}
output:
Start
1
2
3
End
Inner for loop;
Example Program:
public class InnerForLoop {
public static void main(String[] args) {
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 6; j++) {
System.out.print(i);
}
System.out.println();
}}}
Output:
111111
222222
333333
444444
555555
Printlnà printline
Break:
- It will exit from the current loop
Example Program:
public class InnerForLoop {
public static void main(String[] args) {
for (int i = 1; i <= 10; i++) {
Get candy go’s stories in your inbox
Join Medium for free to get updates from this writer.
if (i == 5) {
break;
}
System.out.println(i);
}
}}
Output:
1
2
3
4
Continue:
- It will skip the particular iteration
Example Program:
public class InnerForLoop {
public static void main(String[] args) {
for (int i = 1; i <= 10; i++) {
if (i == 5) {
continue;
}
System.out.println(i);
}
}
}
Output
1
2
3
4
6
7
8
9
10
Basic programs using conditional statements:
EVEN NUMBER AND ODD NUMBER:
To print Even num:
Example Program:
public class InnerForLoop {
public static void main(String[] args) {
for (int i = 1; i <= 20; i++) {
if (i % 2 == 0) {
System.out.println(i);
}
}
}
}
output
2
4
6
8
10
12
14
16
18
20
To print Odd:
Example Program:
public class InnerForLoop {
public static void main(String[] args) {
for (int i = 1; i <= 20; i++) {
if (i % 2 == 1) {
System.out.println(i);
}
}
}
}
Output
1
3
5
7
9
11
13
15
17
19
FREE Demo Session:
Try two FREE CLASS to see for yourself the quality of training.
Our Selenium Training in Chennai
Greens Technology is recognized for its Selenium Training in both retail and corporate market. We have trained above 28,000 students exclusively on QTP and Selenium in last 7 years.All our trainers’ expertises on both development and training which helps us deliver project based training.
Our wonderful Selenium training team lead by Mr. Velmurugan who is working in a leading MNC, researching and automating web applications for last 10 years and contributing to the best Selenium training in Chennai.
All our trainings focuses on practical than theory model. We provide hands-on training experiencewhich helps you test web applications easily at the end of the training program.
Live Selenium Project
This selenium classes in chennai will put you in a Corporate Test Environment. You will be automating Selenium test cases for banking and Ecommerce website. You will create & execute automation scripts and have an opportunity to compare it with scripts created by our experts. Students Will learn to create Webdriver Test Script for a Banking application. How to parameterize a Script using Excel. How to use TestNG for a script. How to take screenshots of test output & add verification steps to the script. The project will last 7 daywith your work allocation for that day.
Selenium Placement Training in Chennai
Greens Technologys has placed many students and help companies to hire certified and trained candidates on QTP and Selenium. GT now serve companies to find rightful talent who successfully fill up the gap for required set of skilled professional.




