0 LIKES LikeUnLike
What is wrong with the following code?public class ClassB extends ClassA{public ClassB(){int init = 10, final = 60;super(40);}} a. Nothing is wrong with the code. b. The method super is not defined. c. The call to the method super must be the first statement in the constructor. d. No values may be passed to super.Points: 2.0) What will be the value of loc after the following code is executed?int loc;String str = "I love Java."loc = str.indexOf("ov"); a. 2 b. 3 c. 4 d. 12
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 3 answers.