Java Class Test

From Aug 3, 2024 to Sep 15, 2024

Class Test Program - 1

WAP to print the element of an array present on even position and odd position

View Program & Output

Class Test Program - 2

WAP to find second highest number in a given array

View Program & Output

Class Test Program - 3

WAP to find the factorial of a given number

View Program & Output

Class Test Program - 4

WAP a Java Program to read roll no, name, and marks of three subjects and calculate the total, percentage and division

View Program & Output

Class Test Program - 5

Write a Java program to create a class named "Bank." In the "Bank" class, take three instance variables acno, name, and balance. Create a parameterized constructor to initialize instance variables. Now create the following methods in the "Bank" class:

i. deposit() - This method is used to deposit money in the account.
ii. withdraw() - This method is used to withdraw money from the account after checking the balance.
iii. enquiry() - This method provides balance enquiry.

View Program & Output