BCSL-043 Java Programming Lab Solved Assignment 2021-22
|Course Title||Java Programming Lab|
|Submission Date||31st October 2021 for July 2021
15th April 2022 for January 2022
- Complete Assignments
- Lowest Price
- Secure Payments
Question 1 (a):
Write a Java program to demonstrate us of all the arithmetic and logical operators in Java.
Question 1 (b):
Write a Java program to create shape class as an abstract class, which is having abstract method area(). Derive classes circle and rectangle from shape class. Override area method in circle and rectangle class to find the area of the respective shape. Define appropriate constructors in circle and rectangle classes. Make necessary assumptions id any.
Question 2 (a):
Write a program in java to read the content from a text file and count the number of words in the file.
Question 2 (b):
Write a program in Java to create an applet which takes a number as input and displays the table of it. Use appropriate layout and user interface in your program.