0% found this document useful (0 votes)
76 views2 pages

Java

This document is an examination paper for BCA students focusing on Programming in Java, consisting of two sections. Section A contains ten compulsory questions worth two marks each, while Section B includes six questions worth ten marks each, from which students must attempt four. Topics covered include Java program structure, command line arguments, classes and objects, inheritance, exception handling, and applet creation.

Uploaded by

akuchandel151
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)
76 views2 pages

Java

This document is an examination paper for BCA students focusing on Programming in Java, consisting of two sections. Section A contains ten compulsory questions worth two marks each, while Section B includes six questions worth ten marks each, from which students must attempt four. Topics covered include Java program structure, command line arguments, classes and objects, inheritance, exception handling, and applet creation.

Uploaded by

akuchandel151
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

http://www.ptustudy.

com

Roll No. Total No. of Pages : 02


Total No. of Questions : 07
BCA (2013 & Onward) (Sem.–5)
PROGRAMMING IN JAVA
Subject Code : BSBC-502
Paper ID : [B1155]
Time : 3 Hrs. Max. Marks : 60

INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2. SECTION-B contains SIX questions carrying T EN marks each and a student has
to attempt any FOUR questions.

SECTION-A

Q1. Answer briefly :

a) Write the structure of a typical Java program.

b) How command line arguments are passed in a Java program?

c) What is the difference between a class and an object?

d) How arrays are declared in a Java program?

e) What are parameterised constructors?

f) What are overriding methods?

g) When do we use protected access specifier?

h) What is an Applet? How is an applet different from an application?

i) What is Inheritance? What are the different forms of inheritance in Java?

j) What is CLASSPATH?

1 | M-70629 (S3)-401

http://www.ptustudy.com
http://www.ptustudy.com

SECTION-B

Q2. Discuss the salient features of Java programming language. How Java is different from C
and C++?

Q3. What are the various operators available in Java? Discuss each with an example.

Q4. a) What is Interface in Java? How is interface implemented?

b) What is an abstract class? What is its use in Java?

Q5. What is an Exception? What are the types of exceptions? Discuss in detail exception
handling in Java.

Q6. Create an applet that receives three numeric values as input from the user and then displays
the largest of these on the screen. Write a sample HTML page to include this applet.

Q7. Explain with examples the various methods supported by the Graphics class.

2 | M-70629 (S3)-401

http://www.ptustudy.com

You might also like