Java Senior Interview Questions

6,015 java senior interview questions shared by candidates

1) Write a query to rank order the following table in MySQL by votes, display the rank as one of the columns. CREATE TABLE votes ( name CHAR(10), votes INT ); INSERT INTO votes VALUES ('Smith',10), ('Jones',15), ('White',20), ('Black',40), ('Green',50), ('Brown',20);
avatar

Senior Java Engineer

Interviewed at Wallet Hub

4.2
Jan 27, 2017

1) Write a query to rank order the following table in MySQL by votes, display the rank as one of the columns. CREATE TABLE votes ( name CHAR(10), votes INT ); INSERT INTO votes VALUES ('Smith',10), ('Jones',15), ('White',20), ('Black',40), ('Green',50), ('Brown',20);

I have a table for bugs from a bug tracking software; let’s call the table “bugs”. The table has four columns (id, open_date, close_date, severity). On any given day a bug is open if the open_date is on or before that day and close_date is after that day. For example, a bug is open on “2012-01-01”, if it’s created on or before “2012-01-01” and closed on or after “2012-01-02”. I want an SQL to show the number of bugs open each day for a range of dates. Hint: There are bugs that were never closed.
avatar

Senior Java Engineer

Interviewed at Wallet Hub

4.2
Jan 27, 2017

I have a table for bugs from a bug tracking software; let’s call the table “bugs”. The table has four columns (id, open_date, close_date, severity). On any given day a bug is open if the open_date is on or before that day and close_date is after that day. For example, a bug is open on “2012-01-01”, if it’s created on or before “2012-01-01” and closed on or after “2012-01-02”. I want an SQL to show the number of bugs open each day for a range of dates. Hint: There are bugs that were never closed.

Elevator Algorithm in which there are many floors and many lifts used to work. give a very optimal solution for so that waiting time will be less as much as possible. which design pattern will be used in this case. Other questions are related to profile.
avatar

Senior Java Developer

Interviewed at PayPal

3.6
Aug 3, 2016

Elevator Algorithm in which there are many floors and many lifts used to work. give a very optimal solution for so that waiting time will be less as much as possible. which design pattern will be used in this case. Other questions are related to profile.

Viewing 5511 - 5520 interview questions

Glassdoor has 6,015 interview questions and reports from Java senior interviews. Prepare for your interview. Get hired. Love your job.