Check if array of int contain two number that sum equal to target number
Engineers Interview Questions
843,163 engineers interview questions shared by candidates
Remove duplicate consecutive spaces from a given string, in-place. For example: "Have a nice day" should become "Have a nice day". Removal of leading and trailing spaces was not specifically mentioned.
My clock is 9 minutes slow every hour. At noon, it tells the correct time. After how many hours will it again tell the correct time?
Why Applied Medical?
Check if 2 files match?
Name and Explain upper two OSI layers ?
Why did you leave your last job?
Matrix with numbers start from top left and move to bottom left. You can move left or down. Maximize the total sum on your path op left and move to bottom left.
Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.
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?
Viewing 2141 - 2150 interview questions