1) Write a program to find largest number in your mobile number if I stored number in long number = 7702210731?
2) Write a program for count the charters in string “MALAYALAM” (how many time M, A, L, Y repeated)?
3) What is encapsulation and write the program for it?
4) What is interface?
5) What are the listeners in TestNG?
6) Write a program for matrix [ 1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1 ]
7) Class Parent {
Method1();
Method2();
}
Class child extends Parent {
p.method1();
p.method2();
p.method3();
}
Public static void main() {
Child c = new parent();
Parent p = new child();
}
IN the above code p.method3() will execute (or) not? And can we write the child c = new parent(); ?
8) Program for taking the screen shot ?
9) In TESTNG I have 5 test methods (not before and after) and how they will execute? And if I want 1 and 3 methods need to execute first and 2,4 and 5 are need to execute second then how we will write the code?
10) For the above question he want to 1 and 3 as regression suite and 2, 4 and 5 are sanity suite then how you will implement?