Errata OCP 11 Study Guide

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
nk2164
Posts: 21
Joined: Mon Sep 30, 2019 9:48 pm
Contact:

Errata OCP 11 Study Guide

Post by nk2164 »

Deshmukh, Hanumant. OCP Oracle Certified Professional Java SE 11 Programmer I Exam Fundamentals 1Z0-815: Study guide for passing the OCP Java 11 Developer Certification Part 1 Exam 1Z0-815 (p. 66). Enthuware. Kindle Edition.

3.5 Exercise :

variable p2 is not declared in this below code .

Code: Select all

public class Person {
	int id;
	String name;
	java.util.Date dob;
	boolean VIP;

	public static void main(String[] args) {
		Person p1 = new Person();
		p2 = p1;
		int id = p2.id;
		p1.name = args[0];
	}

	public String getName() {
		return name;
	}
}

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: Errata OCP 11 Study Guide

Post by admin »

You are right. Although not critical for the purpose of this particular exercise, it is a mistake. Added to errata.
thank you for your feedback!

nk2164
Posts: 21
Joined: Mon Sep 30, 2019 9:48 pm
Contact:

Re: Errata OCP 11 Study Guide

Post by nk2164 »

yes , i agree it is not that critical . Just wanted to report here so it can be corrected in a future update.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests