Indicate whether the following statements are true or false in the Java programming Language:
- The
default
access modifier allows access only within the same class. //Select the answer - A variable that can hold a reference to an object of class A can also hold a reference to an object belonging to any subclass of A. //Select the answer
- An upcast from a subclass to a superclass must be explicitly casted to the superclass type. //Select the answer
- A method can be overloaded by changing only the argument list. //Select the answer
- Method overloading uses the actual type of the class at runtime to decide which method to invoke. //Select the answer
- Abstract classes in Java cannot define constructors because they are never directly instantiated. //Select the answer