Click the Exhibit button. 1. public class Car { 2. private int wheelCount; 3. private String vin; 4. public Car(String vin) { 5. this.vin = vin; 6. this.wheelCount = 4; 7. } 8. public String drive() { 9. return “zoom-zoom”; 10. } 11. public String getInfo() { 12. return “VIN: “+ vin + “wheels: “+ wheelCount; 13. } 14. } And: 1. public class MeGo extends Car { 2. public MeGo(String vin) { 3. this.wheelCount = 3; 4. } 5. } What two must the programmer do to correct the compilation errors? (Choose two.)
insert a call to this() in the Car constructor
insert a call to this() in the MeGo constructor
insert a call to super() in the MeGo constructor
insert a call to super(vin) in the MeGo constructor
change the wheelCount variable in Car to protected
change line 3 in the MeGo class to super.wheelCount = 3;
Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 5. // insert code here 6. } Which five methods, inserted independently at line 5, will compile? (Choose five.)
public int blipvert(int x) { return 0; }
protected long blipvert(int x, int y) { return 0; }
private int blipvert(long x) { return 0; }
protected long blipvert(int x) { return 0; }
protected int blipvert(long x) { return 0; }
protected long blipvert(long x) { return 0; }
Which four are true? (Choose four.)
Has-a relationships should never be encapsulated.
Has-a relationships should be implemented using inheritance.
Has-a relationships can be implemented using instance variables.
Is-a relationships can be implemented using the extends keyword.
Is-a relationships can be implemented using the implements keyword.
An array or a collection can be used to implement a one-to-many has-a relationship.
Given: 11. public class Key { 12. private long id1; 13. private long 1d2; 14. 15. // class Key methods 16. } A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key? (Choose two.)
public int hashCode()
public boolean equals(Key k)
public int compareTo(Object o)
public boolean equals(Object o)
public boolean compareTo(Key k)
Flex 3 requires which player to run
Media Player 9
Flash Player 9
Media Player 8
Flash Player 8
What is the two major files in a Flex Application ?
Java Script & xml
xml & Action Script
mxml & Action Script
mxml & Java Script
Flex Builder 3 IDE is based on
Java
Eclipse
EditPlus
TextPad
What is a Flex inbuilt component from below ?
Datasets
HashTable
StackGroup
Accordian
What do you mean by RIA ?
Rich Internet Applications
Reach Internet Application
Rich & Inteligent Application
Reach & Inteligent Application
Please Leave This Question
Radio
DeskTop
Television
MusicPlayer