CA-503 Core Java (BBACA) || Question Bank

CA-503 Core Java (BBACA) || Question Bank



2 marks questions: 

 1. What is Java? 

 2. Why Java is a platform-neutral language? 

 3. Explain the secure feature of Java. 

 4. Why Java is called portable? 

 5. Enlist types of inner classes. 

 6. What is an anonymous class? 

 7. Enlist types of constructors. 

 8. What is Recursion? 

 9. What is constructor overloading?

 10. What are the types of inheritance? 

 11. What do you mean by abstract classes and methods? 

 12. How to override methods in Java? 

 13. Give an example of hierarchical inheritance. 

 14. Why abstract class is used? 

 15. Which keyword is used to define abstract class? 

 16. Explain the final keyword giving suitable examples 

 17. How to extend the Interface? Explain with an example. 

 18. How to create an interface? Explain with an example.  

 19. Write short notes on: Runtime polymorphism using the interface. 

 20. Explain the use of the super keyword with suitable examples.

 21. What is a stream? 

 22. Which are the predefined streams? 

 23. Describe the term file I/O basic 

 24. What is Error? 

 25. When is the Exception raised? 

 26. What is swing? 

 27. What is the purpose of a layout manager? 

 28. List types of layout managers. 

 29. What do you mean by event listener? 

 30. How an applet is executed? 

 31. What is a panel? 

 32. What is a container?

 

4 marks questions: 

 1. Why Java needs a compiler and interpreter? 

 2. What is a variable? What rules can be applied to have a valid variable name? 

 3. Explain primitive data types in detail. 

 4. Explain reference or non-primitive data types. 

 5. What is an array? 

 6. How a comment is added in the java program? 

 7. Explain java. util package. 

 8. Explain scanner, math, and date class in java. 

 9. Discuss object reference in Java. (ii) this (iv) new operator 

 10. What are objects? How to create objects? 

 11. What is a constructor? How many types of constructors are present in Java?  

 12. Explain various types of constructors. 

 13. Create a class circle, considering pi and radius. Calculate the area of a circle and display it. 

 14. Create a class distance with variable feet and inches, method get_val(), show_dist(). Use constructor. Create two objects and display their distance.

 15. What is an exception? In which package exceptions are defined? 

 16. Can the user program throw its own exceptions? How? 

 17. Explain the purpose of the throws clause. 

 18. Describe file handling in brief. 

 19. Explain various file operations in brief. 

 20. How to read/write characters in a file? Explain with an example. 

 21. How to read/write bytes in a file?  

 22. Write short notes on (i) File I/O basics (ii) Object serialization

 23. Explain in brief the Delegation Event model for handling events. 

 24. Write a note on the Applet lifecycle. 

 25. What is the advantage of using the update() method in the applet? 

 26. What are the various advantages of applet over java applications? 

 27. When start() method is called? 

 28. To remove the applet which method is used? 

 29. How to retrieve parameters in the applet?  

 30. What is an event? How to handle events in applets? Explain with an example.

 

 

Define the term: 

 1. Array 

 2. String 

 3. Constant 

 4. Type casting

 5. this keyword 

 6. class t 

 7. Finalize()

 8. inheritance 

 9. interface 

 10. packages 

 11. abstract class 

 12. Stream 

 13. Logic Error 

 14. FileInputStream 

 15. try 

 16. FileOutputStream.

 17. catch 

 18. File 

 19. Syntax error 

 20. Error

 21. Component 


 

Post a Comment

0 Comments