0% found this document useful (0 votes)
13 views3 pages

Model Question Paper - 2

This document is a model question paper for a Java Programming course at Adichunchanagiri University. It outlines the structure of the exam, including instructions, time allocation, and maximum marks, and presents questions divided into five modules covering various Java programming concepts. Each module contains multiple questions, allowing students to choose one question from each module to answer.

Uploaded by

mangalar
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)
13 views3 pages

Model Question Paper - 2

This document is a model question paper for a Java Programming course at Adichunchanagiri University. It outlines the structure of the exam, including instructions, time allocation, and maximum marks, and presents questions divided into five modules covering various Java programming concepts. Each module contains multiple questions, allowing students to choose one question from each module to answer.

Uploaded by

mangalar
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

MODEL QUESTION PAPER-I

ADICHUNCHANAGIRI UNIVERSITY
BGS Institute of Technology
Sixth Semester B.E
(CBCS Scheme)

Time: 3 Hours Max Marks: 100


SUBJECT: Java Programming ( 22CSOE63)
Instructions: 1. Answer five full questions.
2. Choose one full question from each module.
3. Your answer should be specific to the questions asked.
4. Write the same question numbers as they appear in this question paper.
5. Write Legibly.

Module - 1
1) a. Describe the major features (buzzwords) of Java and explain each in brief. -10M-
b. Explain the structure of a simple Java program. Write and explain the output. -10M-

OR
2) a. Write a Java program to demonstrate Type casting (widening and narrowing) Use of if-else-if
ladder. -10M-
b. Explain string creation and various string methods in Java with examples. -10M-
Module – 2
3) a. Explain the concept of a class and object in Java with an example. -10M-
b. Explain with examples:
Default Constructor
Parameterized Constructor -10M-

OR

4) a. Explain how super is used in Java. -10M-


To invoke the superclass constructor
To access superclass members hidden by subclass members

b. Write a program to demonstrate method overriding and use of super to access overridden methods.
-10M-
Module – 3
5) a. Explain the concept of Java packages. Discuss the types of packages in Java with suitable examples.
-10M-
b. With suitable examples, explain the three ways to access a class from another package.
-10M-

OR

6) a. What is an interface in Java? How does it support abstraction and multiple inheritance? Illustrate
with examples. -10M-

b. Explain the concept of nested interfaces in Java. How are they declared and implemented? Give a
complete example -10M-

Module – 4
7) a. Explain the concept of exception handling in Java. What are the differences between compile-time
and run-time errors? Illustrate with examples. -10M-

b. What is the significance of multiple catch blocks in exception handling? Explain with a Java
program handling more than one exception. -10M-

OR

8) a. Write a Java program to demonstrate the handling of an Arithmetic Exception. Explain how
exception propagation works in Java. -10M-

b. Write a Java program that demonstrates the use of the join() method. Explain the difference
between join() and isAlive() methods. -10M-

Module – 5
9) a. What are the key differences between AWT and Swing in Java? Explain with examples and a
comparison table. -10M-

b. Write a Java Applet program to draw basic shapes like line, rectangle, oval, arc, and demonstrate
the usage of Graphics class methods. Also, explain each method used. -10M-
OR

10) a. Write a Java program using Swing components to create a simple GUI form with labels, text fields,
and a submit button. Explain how components are initialized and events are handled. -10M-

b. Briefly Explain Adding controls to Java Applets with an example. -10M-

********************

You might also like