0 ratings0% found this document useful (0 votes) 48 views11 pagesJava Question Papers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Total No. of Questions : 5]
P-1919
[6034]-503
T.Y.B.B.A.(Computer Application)
CA - 503: CORE JAVA
(Semester-V) (2019 Pattern)
Time : 2% Hours} {Max. Marks : 70
Instructions to the candidates :
1) Neat diagrams must be drawn wherever necessary.
2) Figures to the right indicate full marks.
Q1) Attempt any Eight: [8x2=16]
i) Define variable in Java? What are the naming rules of variable?
ii) | What is recursion?
Define Inheritance?
What is difference between Anay and Array List?
What is error? List types of error?
List any two restrictions for applet.
What is an event?
What is Object and Class?
Write the definition of abstract class?
x) Whatis Container?
Attempt any Four: [4x4=16]
i) Write a note on package in Java
ii) Whatis exception? Expalin its keyword with example.
iii) Explain java. util package.
What is a method in Java? Explain method overloading with example.
How to handle events in applet? Explain with example.03) Attempt any [4x4=16]
i) Write a Java program using AWT to display details of Customer (cust_id
cust_name, cust_addr) from user and display it on the next frame.
Write a Java program to reverse elements in array
Write a Java program using static method which maintain bank account
information about various customers.
Define an abstract class Shape with abstract method area() and volume().
Write a Java program to calculate area and volume of cone and cylinder.
Write a Java program to display smiley face using applet
04) Attempt any Four:
i) Whatis Layout Manager? Explain any one in detail
ii) How to create and access package in Java? Explain it with example.
iii) Write a Java program to Fibonacci series.
iv) Explain anonymous class in detail
¥) Write a Java program to display contents of file in reverse order.
Write a short note any Two:
Which are the predefined streams?
ii) Define multiple inheritance.
iii) Why Javais aplatform neutral language?
bd bd bd
[6034]-503‘Total No. of Questions : 5]
AT No. =
P6017 [Total No. of Pag
[6144]-503
T.Y.B.B.A.(C.A.)
CA 503 : CORE JAVA
(2019 Pattern) (Semester -V)
Time : 2! Hours] (Max. Marks :70
Instructions to the candidates:
1) All questions are compulsory.
2) Figures to the right indicates full marks.
3) Neat diagrams must be drawn Wherever necessary.
Q1) Answer any Eight: [8x2=16]
a) Whatis a java program structure?
b) Define this Keyword.
c) Explain in detail the data types in java?
dd) Whatisan Interface?
e) What is the use of Reader and Writer class?
f) Which method is used to specify containers layout with syntax.
2) Whatis the default layout for Frame and Panel?
h) Explain Modifiers and Access Controls used in java.
i) List and explain any 2 in-built exceptions.
j) Explain the purpose of getContentPane(),
Q2) Attempt any four, [4x4=16]
a) Explain in detail the features of Java.
b) What are the rules for method overloading and method overriding?
Explain it with example
c) Differentiate between interface and abstract class.
d) Explain the concept of exception and exception handling.
e) What are the different types of streams? Explain in details
~/
31/46 v3) Attempt any four. [4x4=16]
a) Write a java program to display alternate character from a given string
b) Write a Java program to calculate area of Circle, Triangle & Rectangle.
(Use Method Overloading).
©) Write a java program to search given name into the array, if it is found
n display its index otherwise display appropriate
d) Write a java program to display ASCII values of the characters from a
file.
¢) Write a java program to display multiplication table of a given number
into the List box by clicking on button
Attempt any four [4x4=16]
a) What is collection? Explain Collection framework in details.
b) _ Difference between Swing and AWT
c) Create a package named Series having three different classes to print
series’
i) Fibonacci series:
ii) Cube of numbers
iii) Square of numbers
Write a java program to generate ‘n’ terms of the above series
Write a ‘java’ program to check whether given number is Armstron
not. (Use static keyword)
Write a ‘java’ program to copy only non-numeric data from one file to
another file.
Write short note any two :
a) Define new operator
b) Define term finalize () method.
c) Define package with all the steps for package creatic
[6144]-503tal No. of Questions :
PA-
1980
[5954]-503
T.Y. B.B.A. (Computer Application)
CA 503 : CORE JAVA
(2019 Pattern) (Semester - V)
Time : 2% Hours} (Max, Marks : 70
Instructions to the candidates:
Q1)
1) Neat diagrams must be drawn wherever necessary.
2) ures to the right indicate full marks.
3) All questions carry equal marks.
4) All questions are compulsory.
Attempt any Eight [8 x 2= 16]
a) What is Java? Why Java is a platform neutral language?
b) What is access specifiers? List them.
©) Define Keyword-Static
d) Why we set environment variable in Java?
©) Write advantages of Inheritance.
Define class and object with one example
What is Swing?
When buffered reader is used?
What is main difference between exception and error?
What is Panel?
Attempt any four [4x 4= 16]
a) Whatis Super Keyword? Explain the use of super keyword with suitable
example.
b) Describe file handling in brief
©) What is datatype? Explain types of datatypes used in Java
d) What is interf ? Why they are used in Java?
©) Why the main() method in public static? Can we overload it? Can we
run java class without main() method?
60/7503)
04)
[5954]-503
Attempt any four : [4x45 16)
am which accepts student details (Sid, Sname, Sadr)
a) Write a java prog
from user and display it on next frame. (Use AWT).
b) Write a package MCA which has one class student. Accept student
details through parameterized constructor. Write display() method to
display details. Create a main class which will use package and calculate
total marks and percentage
©) Write Java program which accepts string from user, if its length is less
than five, then throw user defined exception "Invalid §
dis
otherwise
string in uppercase.
d) Write a Java Program using Applet to create login form
e) What is recursion is Java? Write a Java Program to final factorial of a
number using recursion.
Attempt any four [4x 4=16)
a) Explain method overloading and method overriding in detail
b) Write a applet application in java for designing smiley
©) Explain in brief delegation event model for handling events.
d) Write a java program to copy the dates from one file into another file.
©) Write a java program to accept’ ‘n’ integers from the user & store them
in an ArrayList Collection. Display the elements of ArrayList collection
in reverse order
Write short note any two
a) What is repaint method does?
b) Write constructors of Jtabbed panel.
©) Abstract class
ooo
61/75Total No. of Que
P2141
[5803]-503
B.B.A. (CA)
CA - 503: CORE JAVA
(2019 Pattern) (Semseter - V)
Tine : 24% Hours] [Max. Marks : 70
Instructions to the candidates:
1) All questions are compulsory:
2) Neat diagrams must be drawn wherever necessary.
3) Figures to the right indicate full marks.
Attempt any Eight
a) What is JDK? How to build and run java program?
b) Explain Static keyword.
©) What is use of classpath?
4) Whatis collection? Explain collection frame work in details,
e) Whatis the use of Reader and Writer class?
f) — What is the use of layout manager?
What is difference between paint ( ) and repaint ¢ ),
Explain Access modifiers used in Java.
Define keyword throw.
Define polymorphism.
Attempt any four [4x 4 = 16]
a) Explain features of Java
b) What is difference between constructor and method? Explain types of
constructors.
c) Differentiate between interface and abstract class.
d) Explain the concept of exception and exception handling
©) Explain try and Catch with example03)
7)
05)
[5803]-503
Attempt any four [4x 4= 16]
a)
all the perfect numbers between I to n.
b) Write a Java prog
(Use Method ove
to calculate area of circle, Triangle and Rectangle
loading)
©) Write a java program to accept n integers from the user and store them
in on Arraylist collection, Display elements in reverse order
d) Write a Java program to count number of digits, spaces and characters
from a file.
©) Create an applet th
using mouse
isplay x and y position of the cursor movement
nd keyboard, (Use appropriate listener)
Atte
ptany four [4x 4 = 16]
a) How a Java program is structured? Explain data types.
b) What is applet? Expla
n its types.
©) Write a java pr
from a given fil
am to count number of Lines, words and characters
4) Write a Java program to design email registration form, (Use swing
components)
©) Create a class Teacher (Tid, Thame, Designation, Salary, Subject). Write
a java program to accept 'n' teache
(Use At
and display who teach Java subject
of object)
Wrie short note any two [2x3=6]
a) Define object
b) Define term finally block.
c) What is package? Write down
the steps for package creation,
th dete
61/77Total No. of Questions—6] [Total No. of Printed Pages—3
Seat
No. [5517]-501
B.B.A. (C.A.)/B.C.A. (V Semester) EXAMINATION, 2019
501 : JAVA PROGRAMMING
(2013 PATTERN)
Hours
All questions are compulsory.
All questions carry equal marks.
Neat diagrams must be drawn wherever necess:
Assume suitable data, if necessary
Attempt any eight
(a) List any two restriction for applet
(&) What are different ways of creating string object ?
(c) Justify True/False Java is not fully object oriented
Can we use super() and this() within the same constructor ?
Justify
State the use of wrapper class.
How to create and access the package in Ja
State the purpose of throw keyword.
State the use of jar file.
Which container use border layout as its default layout ?
Does the order of public static void matter in main method.
PTO,(65171-501
Attempt any four [4x4=16]
(a) Write a note on event handling.
(b) What is Interface ? Why are they used in Java ? Explain
(©) Write a java program to accept n names of cities from users
and display them in descending order
(d) What is Applet ? Explain life cycle of Applet
(e) Define an abstract class shape with abstract method area()
and volume(). Write a java program to calculate area and volume
of cone and cylinder
Attempt any four 4x4=16)
(a) Write a packa for games in java, which have two classes
Indoor and Outdoor. Use a function display() to generate the
list of players for specific games.
e parameterized constructor, finalize() method and array
of objects).
(b) What is interface ? Why are they used in java ? Explain
(c) Define collection. Explain any’ two classes used with collection
(d) What is Exception ? Explain its keyword with example
(e) Write a java program to accept the details of employee (Eno,
Ename, Sal) from the user and display it on the next frame
Jse AWT)
4 Attempt any four [4x4=16)
(a) How to add user defined package in main class ? List the
60 / 80
lO DiWrite a java program to accept email address of a user and
throw a user defined exception Email Exception” if
not contain ‘@ symbol.
Write similarities and dissimilarities between Abstract Class
and Interfa
Write a java program to display the content of
order.
plain the use of super and final keyword with ref
to inheritance.
Attempt any four [4x4=16)
(a)
()
(55171-501
plain any four methods of file class.
Write a applet application in java for designing temple.
]
l
Explain the need of garbage collection in java
What is jar file ? Give steps and example of creating jar
file
Write a java program to accept the details of ‘n’ employee
(Ename, salary) from the user store them into the Hashtable
and displays the Employee ne having n
You might also like
WWW - Manaresults.co - In: (Common To CE, EEE, ME, ECE, EIE, MSNT)
WWW - Manaresults.co - In: (Common To CE, EEE, ME, ECE, EIE, MSNT)
2 pages