Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you help me do corrections on my quiz (if possible just problem number and answer) edhesive 4. Consider the following methods: public statie double

can you help me do corrections on my quiz
(if possible just problem number and answer)
image text in transcribed
edhesive 4. Consider the following methods: public statie double dosturint a) return a/21 public static double dostutt (double val) return val/10, What is output by the following? 2.5 2.5 System.out.println(dostuft (5) + dostuff (5.0)); a. 2.00.5 b. 2.50.5 C 22.5 d. 2.5 5. What is output to the screen by the following code? System.out.println("Sum" + 4 + 5); a. Sum= 54 b. Sum=45 C. Sum=9 d. Sum= 4 5 e. Sum=54 6. What is output to the screen by the following code? System.out.print (21/5); a. 3.5 b. 4 c. 4.2 d. 5 e. 5.5 7. Consider the following three classes: Clothing, Socks, and Sweater. Which would you choose be an abstract class? a. Clothing b. Socks C. Sweater d. Socks and Sweater e. all of the above 8. Which of the following keywords allows a child class to access the overridden methods in a parent class? a. extends b. new c. super d. this e. None of the above Edhesive

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

What is a polymer?I am not satisfy give downvote

Answered: 1 week ago