Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java please An abstract class you cannot extend and cannot instantiate you can e

ID: 3695092 • Letter: J

Question


Java please

An abstract class you cannot extend and cannot instantiate you can extend but cannot Instantiate you cannot extend but can instantiate you can extend and can instantiate An interface you cannot instatiate and cannot declare variables of its type you can instatiate but cannot declarevariables of its type you cannot instantiate but can declare variables of its type you can instatiate and can declare variables of its type If an array based deque starts out with a capacity of 4 and has a double what is the capacity of the deque after 12 elements have been added to(text not clear)

Explanation / Answer

Q) An abstract class - you can be extended but cannot be instantiate

An abstract class is declared as abstract may or may not include abstract methods. It provide only the abstract declarations of methods but no definitions. Abstract classes cannot be instantiated, but they can be extended. When an abstract class is extended, the subclass, usually provides implementations for all of the abstract methods in its parent class.

Q) An interface - you cannot instantiate and cannot declare a variable of its type

Interface variables static and final by default in Java. Interfaces provide only abstract methods and final static variables.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote