0% found this document useful (0 votes)
5 views

Java programming expected mock set 3

This document is a question paper for a Java Programming course at DiplomaTech Academy, intended for Summer 2025. It includes various sections with questions on topics such as final variables, garbage collection, inheritance, multithreading, exception handling, and GUI programming. The paper is designed for practice purposes and emphasizes that it should not be resold or misused.

Uploaded by

ARYAN MOHADE
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Java programming expected mock set 3

This document is a question paper for a Java Programming course at DiplomaTech Academy, intended for Summer 2025. It includes various sections with questions on topics such as final variables, garbage collection, inheritance, multithreading, exception handling, and GUI programming. The paper is designed for practice purposes and emphasizes that it should not be resold or misused.

Uploaded by

ARYAN MOHADE
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DiplomaTech Academy – Mega Expected (Practice)

Question Paper
Java Programming (MSBTE 314317, K Scheme) –
Summer 2025
Set No. 3
By Mohade Sir
Max. Marks: 70 Time: 3 Hours

Q.1 Attempt any FIVE of the following (2 marks each)

(Any 5 out of 6 = 10 marks)

1. Define final variable and final method with example.


2. Explain the concept of garbage collection with suitable example.
3. State any four features of Java.
4. List any four methods of Thread class.
5. Explain the use of super keyword with example.
6. Differentiate between method overloading and method overriding.
Q.2 Attempt any THREE of the following (4 marks each)

(Any 3 out of 4 = 12 marks)

1. Explain types of inheritance in Java with proper syntax.


2. Write a Java program to create a user-defined package and import it in another
class.
3. What is multithreading? Write a Java program to demonstrate multithreading using
Thread class.
4. Write a program to demonstrate the use of final keyword in variables and
methods.

Q.3 Attempt any THREE of the following (4 marks each)

(Any 3 out of 4 = 12 marks)

1. Write a Java program to demonstrate the concept of method overriding.


2. Explain exception handling mechanism in Java with try-catch-finally
block.
3. What is the difference between constructor and method? Write a constructor
program.
4. Write a program to create and use an abstract class.

Q.4 Attempt any TWO of the following (6 marks each)

(Any 2 out of 3 = 12 marks)

1. Design a class Student with data members rollNo, name, and percentage. Accept
and display details of 3 students using array of objects.
2. Write a Java program to demonstrate multilevel inheritance using super keyword.
3. Write a Java program to demonstrate the concept of interfaces.

Q.5 Attempt any TWO of the following (6 marks each)


(Any 2 out of 3 = 12 marks)

1. Write a Java program using Swing components to accept user name and password.
Display "Login successful" if both match predefined values.
2. Explain event handling mechanism with ActionListener interface and give
Java program for button click event.
3. Write a Java program to create a GUI with Label, TextField, and Button
using AWT.

Q.6 Attempt any TWO of the following (6 marks each)

(Any 2 out of 3 = 12 marks)

1. Write a Java program to store and retrieve data from a file using FileInputStream
and FileOutputStream.
2. Explain any three classes of Java networking package and give example of socket
programming.
3. Write a Java program to insert and display data from a database using JDBC.

Created By Mohade Sir and Team Diplomatech Academy


Disclaimer!
“These paper is just for practice purpose and therefore not a leak paper of msbte bored exam. Do not
resell and use for any other bad purpose, if not strict action will be taken according to Indian Cyber
Security Laws.”

You might also like