Java Developer Production Support Interview Questions

26,910 java developer production support 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
Jul 4, 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 351 - 360 interview questions

See Interview Questions for Similar Jobs

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