CA 503: CORE JAVA (2019 Pattern)
Question Paper Aug 2022
BBA(CA) (Semester - V)
Max. Marks :70
Q.1) Attempt any Eight: [8 x 2=16]
a} What is JDK? How to build and run java program?
b) Explain Static keyword .
c) What is use of classpath?
d) What is collection ? Explain its frame work in Details.
e} What is the use of Reader and Writer class?
f) What is the use of layout manager?
g) What is difference between paint() and repaint().
h) Explain Access modifiers used in Java.
i) Define Keyword throw.
j) Define polymorphism
Q.2} Attempt any four : [4 x 4=16]
a) Explain features of Java.
b) What is difference between constructor and method? Explain types of constructor.
c) Differentiate between interface and abstract lass.
d) Explain the concept of exception and exception handing.
e) Explain try and Catch with example-
Q.3) Attempt any four : [4 x 4=16]
a)Write a Java program to display all the perfect numbers between 1 to n.
b)Write a Java program to calculate area of circle, Triangle and Rectangle.(Use method overloading)
c)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.
e)create an applet that display x and y position of the cursor movement using mouse and Keyboard (Use Appropriate Listener)
Q.4) Attempt any four : [4 x 4=16]
a) How a Java program is structured? Explain data types.
b) What is applet? Explain its types
c) Write a java program to count number of Lines, words and characters from a given file.
d) Write a java program to design email registration form (Use Swing components)
e) create a class Teacher (Tid, Tname ,Designation, Salary, Subject). Write a java program to accept 'n' teachers and display who teach java Subject (Use Array of object)
Q.5) write short notes any two : [2 x 3=6]
a) Define object.
b) Define term finally block.
c) What is package? Write down all the steps for package creation
0 Comments