Java Full Stack Developer Interview Questions

1,046 java full stack developer interview questions shared by candidates

class A{ p s v test(){sout("A");} } class B extends A{ p s v test(){sout("B");} } class C{ main(){ A a2 = new B(); } } what is the o/p? what this example refers to? what happens when you try to override a static method from parent class?
avatar

Java Full Stack Developer

Interviewed at Carelon Global Solutions

3.8
4 Jul 2019

class A{ p s v test(){sout("A");} } class B extends A{ p s v test(){sout("B");} } class C{ main(){ A a2 = new B(); } } what is the o/p? what this example refers to? what happens when you try to override a static method from parent class?

Viewing 1 - 10 interview questions

Glassdoor has 1,046 interview questions and reports from Java full stack developer interviews. Prepare for your interview. Get hired. Love your job.