About Question com.enthuware.jfcja.v8.2.479 :

Oracle Certified Foundations Associate Java Certification Questions and Discussion
1Z0-811

Moderator: admin

Post Reply
nabupalassar
Posts: 2
Joined: Sun Jan 08, 2023 5:02 pm
Contact:

About Question com.enthuware.jfcja.v8.2.479 :

Post by nabupalassar »

I checked point 1. Namely, I created the Furnace class in the same com.cool package. My class looks like this:

package com.cool;
public class Furnace
{
public void cool(Cooler c) { // 2
c.doCool();
}
}

The compiler didn't throw any errors. Thus 3 correct answers: 1,3,6. But only 3.6 are selected as correct

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

Re: About Question com.enthuware.jfcja.v8.2.479 :

Post by admin »

True, if you put the Furnace class in com.cool package, it will compile. But it is not a right answer because the problem statement says that Cooler is part of a library that has been given to you. Furnace is your class and it uses this library. It is not a part of that library. It implies that it is not in com.cool package.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests