Back to the 2026 paper
Similar questions
Web TechnologyWAP to create a superclass called figure that stores the dimensions of a two-dimensional object. It also defines a method called area () that computes the area of an object. The program derives two subclasses from figure. The first is rectangle and the second is triangle. Each of these subclasses overrides area () so that it returns the area of a rectangle and a triangle respectively.202014mIntroduction To Java Programming LanguageConstruct a Java program that prints a triangular pattern of numbers and analyse how the for loop controls the number of rows and columns.20267mIntroduction To Java Programming LanguageAnalyse Java's primitive data types and type conversion mechanisms. Construct suitable examples showing implicit widening and explicit narrowing conversion, including one case where data loss occurs.20267mWeb TechnologyWith suitable code segments, illustrate various uses of 'final' keyword. Discuss about anonymous inner classes.20207m
PreviousConsider the following code segment: ``java String s1 = "Java"; String s2 = new String("Java"); ` Analyse the results of s1 == s2 and s1.equals(s2)`.NextIn Java, a subclass needs to invoke a constructor and method of its superclass. Construct a suitable program using super and analyse the order in which superclass and subclass constructors execute.
Budget AppAndroid App
Pocketly on Android
Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.