The getValue() method is overridden in two ways. Which one is correct?

```
I:
public class Test {
public static void main(String[] args) {
A a = new A();
System.out.println(a.getValue());
}
}

class B {
public String getValue() {
return "Any object";
}
}

class A extends B {
public Object getValue() {
return "A string";
}
}

II:
public class Test {
public static void main(String[] args) {
A a = new A();
System.out.println(a.getValue());
}
}

class B {
public Object getValue() {
return "Any object";
}
}

class A extends B {
public String getValue() {
return "A string";
}
}
```
a. I
b. II
c. Both I and II
d. Neither


b

Computer Science & Information Technology

You might also like to view...

____ sounds are useful when you need the animation in your movie to coincide with the sound.

A. Event B. Stream C. Action D. Index

Computer Science & Information Technology

When working with tiles, the user can ________

A) change the placement of the tile on the screen B) add more tiles C) delete existing tiles D) all of the above

Computer Science & Information Technology

____ view is the default view when you open a report from the Navigation pane.

A. Layout B. Design C. Print D. Report

Computer Science & Information Technology

If you use a worksheet to answer the question "what-if," you are performing a what-if ____.

A. probe B. formula C. filter D. analysis

Computer Science & Information Technology