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

Question Paper Java

Uploaded by

Kishor Dongare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Question Paper Java

Uploaded by

Kishor Dongare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MSBTE Predicted Question Paper

JAVA PROGRAMMING (314317)


ACS Education Hub

Semester: 4
Time: 3 Hours Total Marks: 70

Q.1 Attempt any FIVE of the following. (5 × 2 = 10

B
Marks)

HU
a) List any four features of Java.

b) Define constructor. Give one example.


n
c) Mention any two types of inheritance supported in Java.
tio

d) Differentiate between throw and throws.


ca

e) What is the use of InetAddress class?


u

f) State any two differences between AWT and Swing. (Optional)


Ed

g) What is JDBC? Write any two interfaces used in JDBC. (Optional)


S

Q.2 Attempt any THREE of the following. (3 × 4 =


AC

12 Marks)
a) Write a program to demonstrate method overloading in Java.

b) Explain the use of super keyword with example.

c) Create and use a user-defined package in Java.

d) Write a program to demonstrate use of wrapper classes. (Optional)

1
Page 2

Q.3 Attempt any THREE of the following. (3 × 4 =


12 Marks)
a) Write a program to handle ArithmeticException using try-catch block.

b) Write a Java program using multithreading by implementing Runnable interface.

c) Explain the thread life cycle with a neat diagram.

d) Write a program to create and run two threads concurrently. (Optional)

Q.4 Attempt any THREE of the following. (3 × 4 =


12 Marks)
a) Design a simple GUI using AWT components (TextField, Label, Button).

B
b) Write a Java program using Swing to create a basic calculator using GridLayout.

HU
c) Explain the delegation event model with an example.

d) Write a program to demonstrate use of MouseListener. (Optional)


n
tio

Q.5 Attempt any TWO of the following. (2 × 6 = 12


ca

Marks)
u

a) Write a Java program to implement TCP client-server communication.


Ed

b) Write a Java program to retrieve host name and IP address using InetAddress
class.
S

c) Explain the use of URLConnection class with a sample code. (Optional)


AC

Q.6 Attempt any TWO of the following. (2 × 6 = 12


Marks)
a) Explain two-tier and three-tier JDBC architecture with diagrams.

b) Write a Java program using PreparedStatement to insert and display employee


records.

c) Describe different types of JDBC drivers with suitable examples. (Optional)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy