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

MCS-206

The document outlines the structure and content of the MCS-206 exam for the Post Graduate Diploma in Computer Applications, focusing on Object Oriented Programming using Java. It includes various questions on Java concepts such as inheritance, file handling, assertions, JDBC, exception handling, and multithreading. Students are required to answer a compulsory question and any three additional questions from a list of topics.
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)
4 views

MCS-206

The document outlines the structure and content of the MCS-206 exam for the Post Graduate Diploma in Computer Applications, focusing on Object Oriented Programming using Java. It includes various questions on Java concepts such as inheritance, file handling, assertions, JDBC, exception handling, and multithreading. Students are required to answer a compulsory question and any three additional questions from a list of topics.
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

[1] MCS-206 [2] MCS-206

No. of Printed Pages : 3 MCS-206 (d) What is inheritance ? How it is implemented in


Java ? Define Vehicle class and inherit classes
“Two wheeler vehicle” and “four wheeler vehicle”
from vehicle class. Define appropriate
POST GRADUATE DIPLOMA IN
COMPUTER APPLICATIONS constructors in all these three classes. 10

(PGDCA-NEW) (e) What is File class in Java ? Explain the use of


any two methods in File class. 5
Term-End Examination
(f) What is assertions in Java ? Explain how
June 2024 assertions are enabled and disabled in Java. 5
MCS-206 : OBJECT ORIENTED (g) Explain the use of JDBC in two-tier system. Also,
PROGRAMMING USING JAVA
explain the need of JDBC driver. 5
Time : 3 Hours Maximum Marks : 100
2. (a) Write a Java program to explain the use of “switch
case” and “break” statements. 5
Note : Question No. 1 is compulsory. Attempt any three
(b) What is method overloading ? Implement it with
questions from the rest.
the help of a program ? 5
1. (a) What is a class ? How a class is defined in
(c) What is abstract class ? List its advantages. In
Java ? Explain the differences between public
and private classes. 5 java how an abstract class is defined ? Can you
crate object from an abstract class ? Also, explain
(b) What is a relational operator ? List and explain
differences between abstract class and
the use of different relational operators in
Java. 5 interface. 10

(c) Write a Java program which take radius of a 3. (a) What is an exception ? Discuss the Throwable
circle as input and display its area. Define class hierarchy. Also, explain checked and
appropriate class and methods in the program.5 unchecked exception.
P.T.O.
[3] MCS-206 [4] MCS-206

(b) What is an access specifier (control) ? What are


the different types of access specifiers ? Explain
why methods of interface are public ? Write Java
code to show how interface is extended. 10
4. (a) What are the various steps for connecting Java
application with database using JDBC ? Explain
with the help of program segment. Also, explain
the difference between commit and rollback.
(b) What is the need of event handling in GUI
programming ? Explain how events are handled
in Java Fx. 10
5. Write short notes on the following : 4×5=20
(a) Multithreading in Java
(b) Use of “finally” block in Exception Handling
(c) uses of “super” keyword
(d) Arrays in Java

***

P.T.O.

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