I couldn't answer the question because I didn't know the class Stack. It wasn't mentioned in my SCJP book.
Do we have to know this class?
About Question com.enthuware.ets.scjp.v6.2.735 :
Moderators: Site Manager, fjwalraven
-
- Posts: 50
- Joined: Sun Nov 10, 2013 4:39 am
- Contact:
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.735 :
No, you don't have to know about this class. However, this question is not really about Stack class. It is about pass by reference/value. But your point is valid. Although common knowledge, it is possible that one may not know what push() means. So a statement has been added to make it clear that the method push adds the passed object to the stack and toString of Stack prints the contents of the stack.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 1 guest