BCA Question Bank - JAVA
BCA Question Bank - JAVA
UNIT I
a. ONE
b. TWO
c. THREE
6. What are identifiers? Write the rules to be followed when creating an identifier.
10. What are streams? List and explain different byte and character streams
12. Explain the increment , decrement and conditional operator with syntax and example.
13. Explain the process of reading a character from the keyboard with suitable example.
UNIT II
2. Write the for statement for a loop that counts from 1000 to 0 by -2
6. Explain the use of for each style of loop with suitable code example.
7. What are arrays? Explain how to declare instantiate initialize and use a onedimensional array
with suitable code example.
11. Explain the wrapper class methods String() , valueOf() and parsing methods with
12. Write the general form of a class? Explain how to define a class in Java with suitable
example.
17. Explain how to return an object from a method with suitable example
21. Create a class Student with members Register number, name and marks in three
subjects. Use constructors to initialize objects and write a method that displays the
information of a student.
UNIT III
1. What is inheritance?
1. Explain how a superclass reference can refer to a subclass object with suitable
example.
2. Explain single inheritance with suitable example.
6. Explain how to create and use a package in Java with suitable example.
suitable example.
13. Illustrate the use of multiple catch statements with suitable example.
17. Explain how to create user defined exceptions in Java with example.
Unit IV
1. What is an Applet?
Page 25 of 25
6. Explain how any two Mouse events are handled in Applets with suitable example
7. Explain how any two Key events are handled in Applets with suitable example
8. Explain the purpose of JButton and explain any four methods associated with it.
9. Explain the use of JTextField and any four methods associate with it
10. Explain the use of JList and any for methods associated with it.
13. Explain different methods associate with JRadioButton control with suitable example.