I'm not really sure how to answer the question below. Any help would be appreciated.
Programming questions: Which of these conditions returns true? Check the Java documentation for the inheritance patterns.
(a) Rectangle r = new Rectangle(5, 10, 20, 30);
(b) if (r instanceof Rectangle) .......
(c) if (r instanceof Point) .......
(d) if (r instanceof Rectangle2D.Double) .......
(e) if (r instanceof RectangularShape) .......
(f) if (r instanceof Object) .......
(g) if (r instanceof Shape)
Solve this problem using java programming concepts.