πŸ“Š JAVA
Q. Suppose A is an abstract class ,B is a concrete subclass of A, and both A and B have an default constructor. Which of the following is correct? a) A a = new A(); b)A a = new B(); c) B b = new A(); d) B b = new B();
  • (A) Both a & b.
  • (B) Both b & d.
  • (C) Both b & c.
  • (D) Both a & c.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Both b & d.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
177
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate