Question

Which statement is not true? Question 10 options: A subclass can add its own fields and...

Which statement is not true?

Question 10 options:

A subclass can add its own fields and methods.

A subclass is more specific than its superclass

The subclass exhibits the behaviors of its superclass and can only add upon behaviors that are defined in the superclass.

Every subclass object is an object of its superclass.

Interfaces are particularly used for ______.

Question 8 options:

polymorphysim.

programming in general.

assigning common functionality to possibly unrelated classes.

assigning common functionality to similar classes.

When only one copy of a variables need to be shared by all objects of a class then that variable should be declared

Question 4 options:

final

static

string

private void

A method containing a parameter or a local variable that has the same name as a field of the class is

Question 7 options:

forbidden in Java

often a logical error

allowed in Java

A and B

B and C

Homework Answers

Answer #1

Answer 10:
The subclass exhibits the behaviors of its superclass and can only add upon behaviors that are defined in the superclass.

subclass can have additional behaviors
Answer 8:assigning common functionality to possibly unrelated classes.

Answer 4:static
static means class level so for all objects only one copy is available
Answer 7:B and C
we can have instance and local variable with same name

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1) Consider the following Java program. Which statement updates the appearance of a button? import java.awt.event.*;...
1) Consider the following Java program. Which statement updates the appearance of a button? import java.awt.event.*; import javax.swing.*; public class Clicker extends JFrame implements ActionListener {     int count;     JButton button;     Clicker() {         super("Click Me");         button = new JButton(String.valueOf(count));         add(button);         button.addActionListener(this);         setSize(200,100);         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         setVisible(true);     }     public void actionPerformed(ActionEvent e) {         count++;         button.setText(String.valueOf(count));     }     public static void main(String[] args) { new Clicker(); } } a. add(button);...
Compile and execute the application. You will discover that is has a bug in it -...
Compile and execute the application. You will discover that is has a bug in it - the filled checkbox has no effect - filled shapes are not drawn. Your first task is to debug the starter application so that it correctly draws filled shapes. The bug can be corrected with three characters at one location in the code. Java 2D introduces many new capabilities for creating unique and impressive graphics. We’ll add a small subset of these features to the...
I've posted this question like 3 times now and I can't seem to find someone that...
I've posted this question like 3 times now and I can't seem to find someone that is able to answer it. Please can someone help me code this? Thank you!! Programming Project #4 – Programmer Jones and the Temple of Gloom Part 1 The stack data structure plays a pivotal role in the design of computer games. Any algorithm that requires the user to retrace their steps is a perfect candidate for using a stack. In this simple game you...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT