Wednesday 1 June 2016

Interview Questions.Give me your answers(your views).

1.Write a java program to find the Second Largest element from a String array?

2.Write the SQL query that gives the alphabetical order of company names from company table which contains companyId and companyName as columns.and That company name should be in top position.

For example output should be like below:

Virtusa
Amezon
Beloit
Capgemini
Deloit
Ebix
Firefox

3. Select highest salary from employee table in which more than 2 employees have the same salary.?

4.Write a program to remove duplicates from String array in java?
5.Write a program to find out given number is even or odd without using modulus symbol?

No comments:

Post a Comment