Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. (10 Points] Fill in the blanks: keyword is used to inherit properties of the

ID: 3881508 • Letter: 1

Question

1. (10 Points] Fill in the blanks: keyword is used to inherit properties of the parent class into the child class b. When a class has a method that has the same name and the same number and types of the inherited method. is the word used to say that there are no restrictions on the use of a method a. parameters as an inherited method, then the method C. or data item. d. The Java interpreter translates a lava program from to machine language, using the e. A(n) f. Another term for g. nextInt) and nextlineare two methods in the h. Compiling a file called Game java will produce a file called i. A constructor with no parameters is called a j. , means "many forms". In programming, it allows different objects to use command. statement in a loop will cause the program to immediately exit the loop. is information hiding. -class. different method actions for the same method name. 2. [10 Points] True/False: In java, Array entries are auto-initialized to 0.0 when creating an array of type double[]. A·java file can contain the definition of more than one static method, but each method must have a different name. a. b. c. A constant is a memory location with a name and a type that stores a value whose contents can change during the program lifetime. d. Abstract class definition begins with the keyword "abstract" keyword followed by Class definition If class C extends abstract class A, then the following statement is legal: A ob = new C ( ) ; The only reason to make a class abstract is so that you can put abstract methods in it. e. f. g. You will get a compile-time error if you attempt to assign any value of type double to any variable of type int. You must declare each variable to have a specific type, but you can change its type with a subsequent declaration statement. You will get a run-time error if you attempt to use any variable in an expression before it has been initialized. h. i.

Explanation / Answer

1)

a) extends

b) overrides

c) public

d) byte code , java classname

e)break

f)abstraction

g) Scanner

h) Game.class

i) default or zero argumented

j) polymorphism

__________________

2)

a) True

b) True

c) False

d) True

e) True

f) False

g) true

h) false

i) false

________________Thank You