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

102403CS1

Ques paper java

Uploaded by

hiteshsahu0231
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)
10 views

102403CS1

Ques paper java

Uploaded by

hiteshsahu0231
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/ 4

102403CS

Roll No………………………..

Course Code: 102403CS


Examination: NOV-DEC 2023
Course: OBJECT ORIENTED PROGRAMMING WITH JAVA

Time Allowed: 3 Hours Maximum Marks: 100


Minimum Marks: 35
Note: Attempt all questions. Part (A) of each question is
compulsory and carries 4 marks; attempt any two parts from
part (B), (C) and (D) carrying 8 marks each.
Q1 A Justify the need of finalize method in Java 4
B Explain the following line used under java 8
program in detail public static void main (String
args[]).
C Demonstrate the concept of static and final. Write 8
a Java program that counts the number of objects
created by using static variable.
D Define Constructor. Explain types of constructor 8
and calculate area using constructor.
Q2 A Describe interface? How it is different from 4
abstract class? Give example.
B Define package. Briefly explain how a user 8
defined package can be created with an example.
C Explain exception handling in JAVA. Write a 8
program to input name and salary of employee
and throw user defined exception if entered salary
is negative.
102403CS

D Explain Inheritance in java with suitable example 8


and how does inheritance perform with final
keyword?
Q3 A Define Wrapper class? Why do we need it? 4
B Compare String with String Buffer..Write a 8
program to count occurrence of character in a
string.
C Describe multi-threading. Construct a java 8
program to create multiple threads in java by
implementing runnable interface.
D Describe ByteStream and CharacterStream. Write 8
a program to copy the content of one file to
another using ‘Reader’ and ‘Writer’ class.
Q4 A Define Applet. Explain how it is different from an 4
application.
B Define Event. Explain Event Delegation Model 8
with suitable example.
C Explain in brief steps for Java Database 8
Connectivity with a sample program.
D Describe Sockets. Write a program to demonstrate 8
a simple client server interaction.
Q5 A List the different Collection Framework in java? 4
B Explain with an example how generics are used in 8
Collection framework.
C Compose a program to demonstrate HashSet and 8
TreeSet.
D Explain the steps involved in creating and 8
executing a jar.
102403CS

Roll No………………………..

Course Code: 102403CS


Examination: NOV-DEC 2023
Course: OBJECT ORIENTED PROGRAMMING WITH JAVA

Time Allowed: 3 Hours Maximum Marks: 100


Minimum Marks: 35
Note: Attempt all questions. Part (A) of each question is
compulsory and carries 4 marks; attempt any two parts from
part (B), (C) and (D) carrying 8 marks each.
Q1 A Justify the need of finalize method in Java 4
B Explain the following line used under java 8
program in detail public static void main (String
args[]).
C Demonstrate the concept of static and final. Write 8
a Java program that counts the number of objects
created by using static variable.
D Define Constructor. Explain types of constructor 8
and calculate area using constructor.
Q2 A Describe interface? How it is different from 4
abstract class? Give example.
B Define package. Briefly explain how a user 8
defined package can be created with an example.
C Explain exception handling in JAVA. Write a 8
program to input name and salary of employee
and throw user defined exception if entered salary
is negative.
102403CS

D Explain Inheritance in java with suitable example 8


and how does inheritance perform with final
keyword?
Q3 A Define Wrapper class? Why do we need it? 4
B Compare String with String Buffer..Write a 8
program to count occurrence of character in a
string.
C Describe multi-threading. Construct a java 8
program to create multiple threads in java by
implementing runnable interface.
D Describe ByteStream and CharacterStream. Write 8
a program to copy the content of one file to
another using ‘Reader’ and ‘Writer’ class.
Q4 A Define Applet. Explain how it is different from an 4
application.
B Define Event. Explain Event Delegation Model 8
with suitable example.
C Explain in brief steps for Java Database 8
Connectivity with a sample program.
D Describe Sockets. Write a program to demonstrate 8
a simple client server interaction.
Q5 A List the different Collection Framework in java? 4
B Explain with an example how generics are used in 8
Collection framework.
C Compose a program to demonstrate HashSet and 8
TreeSet.
D Explain the steps involved in creating and 8
executing a jar.

You might also like