when child class object pass into parent class reference called
Kamal Addioui from Casablanca, Morocco is saying downcasting is correct answer
Bharath from Hyderabad, India is saying upcasting is correct answer
Manvi from Pune, India is saying upcasting is correct answer
Renuka Siriwardhana from Colombo, Sri Lanka is saying upcasting is correct answer
May Phyo is saying upcasting is correct answer
The expected signature of the main method is public static void main(). What happens if we make a mistake and forget to put the static keyword ?
- [A] The JVM issues an error saying that main method should be declared static
- [B] The compiler issues a warning saying that main method should be declared static and adds it automati
- [C] The JVM successfully invokes the main method
- [D] The JVM fails at runtime with NoSuchMethodError
Which collection class allows you to access its elements by associating a key with an element's value, and provides synchronization?
- [A] java.util.SortedMap
- [B] java.util.Hashtable
- [C] java.util.TreeMap
- [D] None