Suppose class X contains the following method: Void doSomething(int a, float b) {... } Which of the following methods may appear in class Y, which extends X?

a. Private void do Something( int a, float b) throws java. io. IO Exception {...}
b. Public void do Something( int a, float b) throws java. io. IO Exception {...}
c. Private void do Something( int a, float b) {...}
d. Public void do Something( int a, float b) {...}


Answer: d. Public void do Something( int a, float b) {...}

Computer Science & Information Technology

You might also like to view...

Sophisticated computer systems require an extension of understanding visual images. This is called a _____ system. 

A. robotic B. perceptive C. learning D. virtual reality

Computer Science & Information Technology

____________________ is an automated power plan that reduces system performance and screen brightness to help you get maximum computing time on each battery charge.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

____ is a language like SGML used to create markup languages but without SGML's complexity and size.

A. XML B. XHTML C. HTML D. XSL

Computer Science & Information Technology

Clicking the item marked 2 in the figure above opens a menu from which you can choose to ________________.

A. Update tasks B. Reschedule Work C. Delete baselines D. None of the above

Computer Science & Information Technology