Ioanna Katsanou wrote: and it stated as a correct declaration the following line: Jump[] jp = new Jump[10]; Why it this correct??
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ioanna Katsanou wrote:So I saw this question
interface Jump{} class Animal implements Jump{}
Jump[] jp = new Jump[10]; Why it this correct??
Stephan van Hulst wrote: interface Jump{} class Animal implements Jump{} This is not valid Java code.
Stephan van Hulst wrote:
Stephan van Hulst wrote: You're not instantiating a Jump, but an array.
Dave Tolls wrote: Stephan van Hulst wrote: interface Jump{} class Animal implements Jump{} This is not valid Java code. In what way is that not valid?
Dave Tolls wrote: