LAB MANUAL
PROGRAMMING IN JAVACSE2006
Submitted by
Rachit Singh Chauhan
(22BAI10353)
BACHELOR OF TECHNOLOGY
in
CSE (Specialization in Health informatics)
SUBMITTED TO
Dr. Nilesh Kunhare
SCHOOL OF COMPUTING SCIENCE AND ENGINEERING AND
ARTIFICIAL INTELLIGENCE
VIT BHOPAL UNIVERSITY
July 2025
LAB MANUAL
LAB # 1
1) A program to display any message :
Output:
2) Display default values of all primitive data types :
LAB MANUAL
Output:
LAB MANUAL
3) Check if two Strings are equal or not:
Output:
LAB MANUAL
4) Examples of java operators:
Output:
LAB MANUAL
5)Looping Statements:
Output:
LAB MANUAL
6) Constructor :
Output:
LAB MANUAL
7) Error Handling:
Output:
LAB MANUAL
8) Exceptional Handling:
Output:
LAB MANUAL
9) Interface Implementation:
Write a program to create interface named test. In this interface
the member function is square. Implement this interface in
arithmetic class. Create one new class called ToTestInt in this class
use the object of arithmetic class.
Output: