Complete question is attached as snapshot.
Answer:
This will result in a compilation error.
Here's the inheritance hierarchy:
Meg -> Lois -> Brian -> Stewie
Now Meg has 2 public Fxns, a() and toString().
Lois inherits from Meg and all its public functions as well but, overrides the a() fxn of its super class.
So finally Lois has fxns a(), b() and toString().
Brian extends Lois and inherits all the above listed fxns of Lois, but overrides the b() and toString() fxns.
Stewie extends Brian and inherits all the fxns of Brian, but overrides the a() and toString() fxns.
In the Main driver fxn, we call a() and b() methods of all these classes but, the base class Meg has no b() and it is not extending any class so its not available in its scope.
This results in a compilation error.
Explanation:
Answer:
Peg
Explanation:
This is known as the "peg technique." The name comes from the fact that we usually employ pegs to hang clothes to dry. In this memory aid, the person who wants to memorize something creates mental associations between two concrete objects. This is done in a one-to-one fashion that links all the words together.
Answer:
A.Sam.
Explanation:
We are using Deque interface which is sub type of Queue interface. Deque supports insertion and deletion from both ends front and end.So it can be used as a queue and stack also.
In this question we have inserted Jack at the front first.Then Rudy at the back then larry also at the tail.Now we have added sam at the front then nothing is added to the front.So the answer is Sam.
Answer: Persistent
Explanation:
Persistent is the type of connection in the hyper text transfer protocol (HTTP) that act as communication channel in the network. It basically remain open after HTTP request or response to the server.
Persistent also maintain the HTTP connection and prevent it from the timing out with the help of transmission control protocol packets.
In the persistent connection, after request has been send TCP connection is leave by the server. Therefore, the request can be easily send between the similar server and client.
Answer:
The rank of disk capacities in decreasing order is:
1.petabyte,
2.terabyte
3.gigabyte
4.megabyte
5.kilobyte
Explanation:
Petabyte is largest among all and 1 petabyte equal to 1024 terabyte
Kilobyte is smallest among all and 1 kilobyte equal to 1024 byte
1 megabyte is equal to 1024 kilobyte
1 gigabyte is equal to 1024 megabyte
1 terabyte is equal to 1024 gigabyte