This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OCA Study Guide Java SE 8 programmer 1 Exam 1z0-808 Jeanne Boyarsky & Scott Selikoff  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 5 Review questions.
Question No 19) Where is the blank in the question?

public class Snake {}
public class Cobra extends Snake {}
public class GardenSnake {}
public class SnakeHandler {
   private Snake snake;
   public void setSnake(Snake snake) { this.snake = snake; }
public static void main(String[] args) {
     new SnakeHandler().setSnake();
   }
}


Please reply, thanks
 
author & internet detective
Marshal
Posts: 38366
645
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ramya,
In my print copy it says



I'm guessing you are using an electronic copy since the print book is right . Which one lacks the blank? Kindle? Safari? Something else?
 
R Karthik
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
Yes, I am using an electronic version. (Kindle)
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!