0% found this document useful (0 votes)
5 views4 pages

Java Programming Lab Record 2025-26

This document is a lab record for a Java Programming course (CSN 203) for the Bachelor of Technology in Computer Science and Engineering at DIT University for the session 2025-26. It includes a list of programming tasks that students are required to complete, covering various Java concepts such as data types, type conversion, control structures, inheritance, polymorphism, and exception handling. Each task is accompanied by a title, date, and space for signatures.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Java Programming Lab Record 2025-26

This document is a lab record for a Java Programming course (CSN 203) for the Bachelor of Technology in Computer Science and Engineering at DIT University for the session 2025-26. It includes a list of programming tasks that students are required to complete, covering various Java concepts such as data types, type conversion, control structures, inheritance, polymorphism, and exception handling. Each task is accompanied by a title, date, and space for signatures.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

LAB RECORD

OF
JAVA PROGRAMMING

(CSN 203)

BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING

Session 2025-26

Submitted To: Submitted By:


Dr. Deepshikha Name:-

Assistant Professor Roll No. :-

School of Computing SAP ID :-

DIT University Section/Batch :-

SCHOOL OF COMPUTING
DIT UNIVERSITY, DEHRADUN
(State Private University through State Legislature Act No. 10 of 2013 of Uttarakhand and approved by UGC)
Mussoorie Diversion Road, Dehradun, Uttarakhand - 248009, India.

August 2025 – December 2025


INDEX
S. No. Title Date Signature

1. Write a Java program that declares variables of all the


numeric data types and prints their default values.

2. Write a program that demonstrates the use of binary, octal,


and hexadecimal literals in Java.

3. Write a Java program that demonstrates implicit and


explicit type conversion and print the result.

4. Write a Java program that accepts three integers from the


user and prints the sum, the difference, the product, the
average, the maximum and minimum of these numbers
using ternary operator.

5. Write a Java program to input marks of five subjects


Physics, Chemistry, Biology, Mathematics and Computer,
calculate percentage and grade according to given
conditions:

If percentage >= 90% : Grade A


If percentage >= 80% : Grade B
If percentage >= 70% : Grade C
If percentage >= 60% : Grade D
If percentage >= 40% : Grade E
If percentage < 40% : Grade F

6. Write programs to print following patterns:

a. 1 b.* c. 1

12 ** 01

123 *** 101

1234 **** 0101


7. Write a Java program to generate the Fibonacci series up to
a certain number using recursive method.

8. Write a Java program to sort Strings in alphabetical order


along with printing the count of vowels and consonants in
String.

9. Write a Java program for linear search by using method


with array as argument.

10. Write a java program to implement the single level,


multilevel inheritance using classes.

11. Write a java program to implement the multilevel


inheritance using abstract classes.

12. Write a java program to implement the multiple


inheritance using multiple interfaces.

13. Write a java program in java to the concept of


polymorphism by method overloading .

14. Write a Java program to demonstrate the usage of


constructor chaining using super and this.

15. Write a Java program to demonstrate method overloading


and overriding.

16. Write a program in java to handle the exception using try


and multiple catch block with finally and without finally.

17. Write a java program in Java to demonstrate the use of


throw (user defined exception).

18. Write a Java program to demonstrate the various methods


of String, StringBuilder/StringBuffer.

You might also like