QA Automation Interview questions

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Cucumber Selenium, Java, JavaScript, Others, questions, Selenium Cucumber, Technical blog, Travel, Trending
QA Automation Interview questions Differentiate final , finally, finalize (Short Ans: final method can’t be overridden, final variable can’t be changed, finally goes with try/catch, finalize is garbage collector) how to handle exceptions in java (Ans: try catch, throws, etc) how to use parameters in cucumber/testNG (Ans: scenario outline,tidy gherkin plugin, vs testng.xml-suite,test,class,method;) compare TestNG […]

If else program in Java

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Jmeter, Others, questions, Technical blog, Travel, Trending, Uncategorized
If else program in Java import java.util.Scanner; class IfElse { public static void main(String[] args) { int marksObtained, passingMarks; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { System.out.println(“You passed the exam.”); } else { System.out.println(“Unfortunately you failed to pass the exam.”); } […]

Nested Java program loops

Posted Posted in Android, Apache, Automation Framework, Automation/QTP/Selenium Blogs, Jmeter, Others, questions, Technical blog, Travel, Trending, Uncategorized
Nested Java program loops import java.util.Scanner; class NestedIfElse { public static void main(String[] args) { int marksObtained, passingMarks; char grade; passingMarks = 40; Scanner input = new Scanner(System.in); System.out.println(“Input marks scored by you”); marksObtained = input.nextInt(); if (marksObtained >= passingMarks) { if (marksObtained > 90) grade = ‘A’; else if (marksObtained > 75) grade = […]

hello world first java program

Posted Posted in Android, Automation/QTP/Selenium Blogs, Java, JavaScript, Others, Travel, Trending
hello world first java program Creating first Java project  first you need to install Eclipse IDE – can be downloaded from //www.eclipse.org Eclipse will look like below, 2) create a project using Eclipse IDE, and give name as “Hello world” 3) create a package as shown below 4) create a class as below, 5) fill the […]