Given this array:
Answer : BE
Given the content of three files:
Answer : A
Given the code fragment:
Answer : DE
Given:
Answer : A
Given the following class declarations:
✑ public abstract class Animal
✑ public interface Hunter
✑ public class Cat extends Animal implements Hunter
✑ public class Tiger extends Cat
Which answer fails to compile?
Answer : E
Which statement is true about Java byte code?
Answer : D
Explanation:
Java bytecodes help make "write once, run anywhere" possible. You can compile your program into bytecodes on any platform that has a Java compiler. The bytecodes can then be run on any implementation of the Java VM. That means that as long as a computer has a Java VM, the same program written in the Java programming language can run on Windows 2000, a Solaris workstation, or on an iMac.
Reference:
http://www.math.uni-hamburg.de/doc/java/tutorial/getStarted/intro/definition.html
Given:
Answer : A
Given:
Answer : A
Given the code fragment:
Answer : ABF
Given:
Answer : A
Given the following code for the classes MyException and Test:
Answer : B
Given:
Answer : C
Which two are benefits of polymorphism? (Choose two.)
Answer : BD
Reference:
https://www.cs.princeton.edu/courses/archive/fall98/cs441/mainus/node5.html
Given the code fragment:
Answer : B