Mock Test – 2

The questions in this mock test are designed per the requirements of the OCPJP7 exam pattern and its standard. Take the test as if it were your real OCPJP 7 exam. Best of luck.

Time: 2 hours 30 minutes                                                                       No. of questions:90

  1. Consider the following program and predict the behavior of this program:
    class Base {        public void print() {                System.out.println("Base:print");        }}abstract class Test extends Base { //#1        public static void main(String[] args) {                Base obj = new Base();                obj.print(); //#2 ...

Get Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.