My teacher gave out a practice exam on java recently and I'm curious to see how I did on the true/false part. I'm least confident about number one, so any explanation there would help a lot.
In Java, a class can extend any number of abstract classes.
false. I don't quite understand why, is it just because in an inheriting class the the parent classes could cause a conflict?In Java, it is illegal to pass a parameter whose type is an abstract class.
False, abstract classes don't even have constructors...In Java, an abstract class can have any number of subclasses.
True. I can't think of anything that would restrict this.In Java, there is no restriction on the number of interfaces a class can implement.
TrueIt is not possible to implement a stack as a doubly-linked list, because a stack requires access to only one end of the list, and a doubly-linked list provides access to both ends of the list.
true. but it wouldn't be very efficient.
Thanks!