Java Engineer Interview Questions

27,721 java engineer interview questions shared by candidates

Question: Write a simple query to show data in a single resultset. Resultset should have department table data first order by deptname and followed immediately by sub-department table data also ordered by deptname. Both tables data should be wrapped in a single resultset, with the above criteria.
avatar

Java Developer

Interviewed at Oracle

3.5
Aug 7, 2016

Question: Write a simple query to show data in a single resultset. Resultset should have department table data first order by deptname and followed immediately by sub-department table data also ordered by deptname. Both tables data should be wrapped in a single resultset, with the above criteria.

what is the output public class Barclays { static class A{ A(){ f(); } public void f(){ System.out.println("A ctor"); } } static class B extends A{ B(){ f(); } public void f(){ System.out.println("B ctor"); } } public static void main(String[] args) { B b = new B(); b.f(); A a = new A(); a.f(); } }
avatar

Java Programmer

Interviewed at Barclays

4
Jan 15, 2010

what is the output public class Barclays { static class A{ A(){ f(); } public void f(){ System.out.println("A ctor"); } } static class B extends A{ B(){ f(); } public void f(){ System.out.println("B ctor"); } } public static void main(String[] args) { B b = new B(); b.f(); A a = new A(); a.f(); } }

Viewing 321 - 330 interview questions

Glassdoor has 27,721 interview questions and reports from Java engineer interviews. Prepare for your interview. Get hired. Love your job.