only self introduction round and they assured 100%placement will be there.
Java Programmer Interview Questions
26,868 java programmer interview questions shared by candidates
What Classes you use if you fetch the data from database?
2. How will you take out 4 litres of water in a pot from the sea just by having two bottles of 3L and 5L of random shapes?
Given a relational database, how to improve the performance of a select query involving some joins?
If a computer is unplugged and it won't turn on, what do you do?
System.out.print(1 + 1 + "Hello")
General Java Questions which one can see over the Internet.
Online screen sharing interview questions Q) Remove html tags in a string Sample Input: <h1>Hello World!</h1> <p>something</p> Output: Hello World! something My Solution: public static String stripHtmlTags(String html){ html = html.replaceAll("<.*?>", " ");//replace tag with space html = html.replaceAll(" +", " ");//replace multi-spaces with a single space return html; } Q) Given an integer input array A, you need to create an integer output array B of same size such that each entry at index i, is stated as B[i] = A[0]*A[1]*....A[i-1]*A[i+1]*A[i+2]*.... So, it means we have to multiply all the numbers excluding the value at that index i. Sample Input: {3,1,6,4} Output: [24, 72, 12, 18] B[0] = 1*6*4, B[1] = 3*6*4, B[2] = 3*1*4, B[3] = 3*1*6 My Solution: /** * Assumptions: zero is not present in the numbers. * @param input int numbers * @return output int array */ public static int[] product(int[] input){ int prod = 1; int[] res = new int[input.length]; for(int ele:input) { prod *= ele; } for(int ind=0; ind<res.length; ind++) { res[ind] = prod/input[ind]; } return res; }
3.write an sql query to get second largest scorer in a student table
Technical Question: Given the following list of integers, how would you sort it the most efficiently and weed out duplicates at the same time?
Viewing 111 - 120 interview questions