- 1 A Write A Java Program To Display Any Message 1 Pts B Write A Java Program To Display Default Value Of All Primi 1 (128.3 KiB) Viewed 28 times
1. a. Write a Java program to display any message. (1 pts) b. Write a Java program to display default value of all primi
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. a. Write a Java program to display any message. (1 pts) b. Write a Java program to display default value of all primi
1. a. Write a Java program to display any message. (1 pts) b. Write a Java program to display default value of all primitive data types of Java. (2 pts) c. Write a Java program check two strings are equal or not. (2 pts) 2. Create a class named 'Shape' with a method to print "This is shape”. Then create two other classes named 'Rctangle' and 'Circle' inheriting the 'Shape' class, both having a method to print "This is rectangular shape" and "This is circular shape" respectively. Create a subclass 'Square' of 'Rectangle' having a method to print "Square is a rectangle". Now call the method of 'Shape' and 'Rectangle' class by the object of 'Square' class. (5 pts)