Which statement is true about Java byte code?

Which statement is true about Java byte code?
A. It can run on any platform.
B. It can run on any platform only if it was compiled for that platform.
C. It can run on any platform that has the Java Runtime Environment.
D. It can run on any platform that has a Java compiler.
E. It can run on any platform only if that platform has both the Java Runtime Environment and a Java compiler.

Answer: D

Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

You are asked to develop a program for a shopping application, and you are given the following information:
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

image150 - 
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?
A. Option A
B. Option B
C. Option C
D. Option D

Answer: A