Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
89 views

Java Programming Question Bank

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views

Java Programming Question Bank

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

QUESTION BANK

III year JAVA question bank


Short question:-

1. What is Java?
2. What are the features of Java?
3. What is JVM?
4. What is the difference between a class and an object?
5. What is object-oriented programming?
6. What are the four principles of OOP?
7. What is inheritance?
8. What is encapsulation?
9. What is polymorphism?
10. What is abstraction?
11. What are access modifiers?
12. What is a constructor?
13. What are the different types of variables in Java?
14. What is an array?
15. What are control structures in Java?
16. What is exception handling?
17. What are the different types of exceptions in Java?
18. What is the difference between an abstract class and an interface in Java?
19. Provide an example of Polymorphism.
20. What is the difference between a private and a protected method in Java?
21. How do you implement a bubble sort algorithm in Java?
22. What is the difference between a while loop and a do-while loop in Java?
23. What is a thread in Java? Provide an example of how to create a thread.
24. What is the difference between a static and non-static variable in Java?
25. What is an interface in Java? Provide an example.

UNIT--1

(a) Explain Scope and lifetime of the variables?


(b) What is Inner Class?
(c) Explain about Java Buzzwords?
(d) What is access control?
(e) What are OOPS concepts
(f) How access control is implemented in java?
(g) Explain about String class methods with an example program?
(h) Explain about runtime polymorphism with an example program?

UNIT-2
(i) How to access a package and also write the uses of creating a package?
(j) Explain how to create built in exceptions with example program?
(k) What is an Interface?
(l) Explain about Method Overriding?
(m) What is an abstract class
(n) Explain Constructor Overloading with an example program?
(o) Define Inheritance and explain different types of Inheritances with example programs ?
(p) Explain steps for creating a package?

UNIT-3

(q) Explain about Final Class and Methods?


(r) What are checked exceptions?
(s) Explain thread life cycle? How to create threads using thread Class?
(t) What is multithreading?
(u) ) Explain the following: try, catch, throw, throws, finally
(v) What are the checked Exceptions and Unchecked Exceptions?
(w) Explain some of these exceptions with an example and also give the difference between them.

UNIT—4

a) Write the Concepts of Applets.


b) Different between Applets and Applications.
c) Write about Life cycle of Applets and different types of Applets.
d) Write details of Events Handling.
e) Explain in details of File and Streams.
f) Write a program to read data from the keyboard and write it to myfile.txt file.

UNIT—5

a) Describe about AWT(abstract window toolkit AWT).


b) Write in details Listeners and Listener Methods:.
c) Write about Layout Manager and different types of Layouts Manager.
d) Write details of AWT(checklist,checkboxex,label,radio button,buttons,list with
synatc) .
e) Explain in details of Graphics(AWT).
f) Differences between AWT and Swing .
g) Write details of swings(checklist,checkboxex,label,radio button,buttons,list with
synatc) .

You might also like