UTTARANCHAL UNIVERSITY, DEHRADUN
UTTARANCHAL SCHOOL OF COMPUTING SCIENCES
PROGRAMMING in JAVA | BCA – C404
Question Bank
1. Differentiate between interface and abstract class.
2. Discuss Data type in Java with example.
3. Discuss various control statements in Java with proper example.
4. Design a program in JAVA to check whether a no. is palindromes or not.
5. Compare and contrast between method overloading and method overriding with example.
6. What are the three properties of the final keyword ?
7. How method overloading differs from overriding ? Explain with the help of an example.
Write a java program to check how many vowels are in odd location in a string.
8. Discuss different types of Java applications and provide examples of each type.
9. Discuss various types of inheritance supported by java with suitable diagram.
10. Discuss the concept of constructor in Java.
11. What do you understand by Java virtual machine?
12. What is the difference between JDK, JRE, and JVM?
13. Discuss the concept of Arrays in Java.
14. Write a program using do…while loop to print Fibonacci series
15. What is exception handling in Java and why is it important for robust programming?
16. How do try, catch, and finally blocks work together to handle exceptions in Java?
17. What is the purpose of using multiple catch blocks and how does exception hierarchy
affect them?
18. How does the throw keyword differ from throws and in what scenarios are each used?
19. What is exception propagation and how does it affect method call chains in Java?
20. What are the key differences between String, StringBuffer, and StringBuilder in Java?
21. How can you create an immutable class and why is String immutable in Java?
22. What is the significance of the toString() method and how can it be overridden?
23. How does the StringTokenizer class work and when should it be used for string parsing?
24. What is multithreading and why is it useful in Java applications?
25. Describe the life cycle of a thread and how thread states are managed in Java.
26. What are the two main ways to create a thread in Java and how do they differ?
27. What is the role of the thread scheduler and how does it influence thread execution?
28. What does Thread.sleep() do and what exceptions must be handled when using it?
29. How do you create a basic Swing-based Java application or applet using panes, labels,
and text fields?
30. What is the JDBC-ODBC Bridge and why is it no longer recommended in modern Java?
31. What are the different types of JDBC drivers and how do they connect Java applications
to databases?
32. Write a program in java to print following output using loops
1
22
333
4444
55555