0% found this document useful (0 votes)
3 views4 pages

Java Question Bank

This document is a question bank for a Java course at Vidyavahini First Grade College, Tumkur, covering various topics such as bytecode, constructors, exception handling, and GUI components. It includes 1-mark and 5-mark questions, along with programming tasks related to Java concepts. The questions are organized by chapters and focus on key Java programming principles and practices.

Uploaded by

rrssrcbvscsk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Java Question Bank

This document is a question bank for a Java course at Vidyavahini First Grade College, Tumkur, covering various topics such as bytecode, constructors, exception handling, and GUI components. It includes 1-mark and 5-mark questions, along with programming tasks related to Java concepts. The questions are organized by chapters and focus on key Java programming principles and practices.

Uploaded by

rrssrcbvscsk
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JAVA VVFGC, Tumkur

VIDYAVAHINI FIRST GRADE COLLEGE, TUMKUR


Department of BCA
JAVA - QUESTION BANK

1 Marks Question:

1. What is Bytecode?
2. What is JIT complier?
3. What is the use of instance of operator?
4. Why goto statements are not available in Java?
5. What is constructor?
6. What is an Interface?
7. What is an Exception?
8. Define Thread
9. What is an Applet viewer?
10. What is the use of Graphic class?
11. What is www?
12. Define Encapsulation.
13. How java is secured language? Explain
14. Mention special operators available in Java.
15. What do you mean by type casting?
16. Write the use of break statement.
17. Why finalize () is used in java?
18. What do you mean by constructor?
19. Define Package.
20. Why notify () is used in java thread?
21. What is meant by stream tokenized?
22. Why Repaint () method is used?
23. Mention the types of Java Program.
24. Which of the Java token is ignored by the Java Compiler?

Dept. of BCA Page 1


JAVA VVFGC, Tumkur

25. What are the data types of operands of logical operators?


26. Which constructor is executed first? Subclass or Super class?
27. What is abstract method?
28. Mention the constants of math class.
29. Why strings are called immutable?
30. What is Dynamic Binding?
31. What is GUI?
32. What is array?
33. Define Inheritance.
34. What is Polymorphism?
35. What is Object?
36. What is class?
37. Define “this keyword.
38. What is checked exception?

5 Marks Questions

Chapter - 1

1. Difference between C++ and java


2. Explain different scope of variable in Java
3. What is JDK? List tools of JDK.
4. Define array .Write syntax to define 2-Darray in java
5. Explain structure of java program
6. Explain Relational Operators in java
7. Write difference between while and do-while.
8. Explain phases of java program.
9. What is JDK? Explain the important tools of JDK.
10. Explain Bit – wise operators
11. How to declare and initialize of an array?
12. Write any five rules of using switch statement.
13. Write a typecasting.

Dept. of BCA Page 2


JAVA VVFGC, Tumkur

14. Explain “public static void main String args[]”

Chapter - 2

15. Explain types of constructors in Java with suitable example.


16. What are the rules to define a constructor?
17. Explain “static” keyword.
18. Explain Access Specifies in java with example.

Chapter – 3
19. What are the rules of using super keyword?
20. Illustrate method overloading with an example.
21. What is polymorphism? Explain the types of Polymorphism.
22. Explain process of creating user defined package with an example.
23. Explain different API Packages.
24. What is interface? Explain multiple interfaces with programming example.
25. Differentiate between interface and abstract class.
26. How Runnable interface can be implemented?
27. Write the difference between method overloading and method overriding?
28. Explain the process of creating user – defined packages with an example.
29. Explain inheritance with an example program.
30. What is an object? How to create an Object?

Chapter – 4

31. What is event handling? Explain the types of Event.


32. Write a program to implement keyboard events.
33. Explain the GUI components?
34. Write a note on applet life cycle.
35. Explain checked exception in java.
36. What are the difference between Applet and Application?
37. Write the various Graphics class methods
38. Explain graphics methods to draw a rectangle.

Dept. of BCA Page 3


JAVA VVFGC, Tumkur

39. Write an Applet program to demonstrate the drawing function(Rectangle, Ellipse and Circle)
40. Discuss the process of writing and execution of an applet with an example.
41. Write a program to explain any four graphics class methods.

Chapter – 5
42. Write important methods of InputStream and OutputStream.
43. Write a note on Stream classes.

Chapter – 6
44. Explain the Thread – priorities with an example.
45. Explain the Exception handling mechanism.
46. Write a note in thread priorities in java.
47. Write a note on Synchronization.
48. Explain the Life Cycle of Thread

Programs: [Including Lab Programs]

49. Write a java program to list array elements in ascending order and show exception handling.
50. Write a Java program to reverse a given number
51. Write a java program to find prime numbers between given ranges.
52. Write a program to find the largest of 3 numbers using command line arguments.
53. Write a java Program to generate Fibonacci series

Dept. of BCA Page 4

You might also like