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

Please answer 1-3 Please answer 4,10& 11 please Please answer 12-14 Circle the c

ID: 3574233 • Letter: P

Question

Please answer 1-3 Please answer 4,10& 11 please
Please answer 12-14 Circle the correct response. For "True or False", if your answer is "False" explain. l. When you implement a method that is defined in a superclass, you the original method. a. Overload b. Override c. Copy d. Call 2. Suppose the xMethode is invoked in the following constructor, xMethod(0 is public MyClass0 xMethodO: a. a static method b, an instance method c. None of the above 3. The class is inherited by every Java class. a. Class b. Object c. Number d. Comparable

Explanation / Answer

Ans 1. (b). You can give you own defination in your class.

Ans 2. (b). But doing so is not a good practice.As your variable are not initialised.

Ans 3. (b)

Ans 4. (d). It will print defaultvalue 0.

Ans 10. (c). args is array in which argument will be stored. and Array starts with 0 index and "abc" is third argument.

Ans 11. It will not give any error.Will compil and run with no error. a will stat pointing to int[20].

Ans 12. (a) and (c) are correct option. (a) option is direct function in java and (c) is a loop which counts arguments in arrray args.

Ans 13.A interrface can not implement another interface. It only can extend a interface and define its own function also.

Ans 14. (a).It will print default value 0.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote