Answer:
True.
Explanation:
In the code given in the question we have an abstract class A.Then we have a class B which inherits the class A it is also an example of single inheritance.
Line A c; creates a reference of A type.
Line c=new B(); states that the reference of A type will refer to an object of class B.
Hence we conclude that the answer is True.
Answer:
employees.get(0)
Explanation:
In the programming, the index of ArrayList start from zero.
So, the element start storing in the ArrayList from the zero index.
get() is the function which is used to retrieve or getting the value in the
ArrayList.
The function employees.get(0), it retrieve the element of zero index.
The function employees.get(1), it retrieve the element of first index.
The function employees.first(1), it is wrong calling.
The function employees.get(), it is wrong calling. you have to enter the index value inside the get().
Answer:
if its a test try to just do it on your own ,you got nothing to lose from a test, its just to understand what you know on the concepts, but if you would still like answers just search around the net or here and you can always post the questions to ask people for help someone would eventually answer your questions but then beware of bots that post links as answer!
Explanation: