Java Developer Production Support Interview Questions

26,925 java developer production support interview questions shared by candidates

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 311 - 320 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 26,925 interview questions and reports from Java developer production support interviews. Prepare for your interview. Get hired. Love your job.