Jaime Lozano

Greenhorn
+ Follow
since Jan 17, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jaime Lozano

Very interesting post. This questions even confuse me for a while. Maybe thinking this way helps:

Hippo extends Animal so we can say that Hippo IS AN Animal. So an Hippo object has all the Animal attributes and methods (even those private). I have said an Hippo OBJECT. But Hippo class obviously does not have those attributes and methods (not even the public as they are in Animal), and that's we say that they are not inherited.

6 years ago
Thank you Ganesh Patekar. I didn't realize that Toy objects were created with String literals.
This is Question 2 in Exam809_SampleQuestion.pdf which you can download at Oracle's website.
Hello this is my first post. This is an Oracle 1Z0-809 Sample Question. I don't understand why the line of code 28 works when I think it shouldn't as it is String comparison whith == instead of equals().