Java Semester Final Exam Questions (3)
Java Semester Final Exam Questions (3)
2-Mark Questions
General Programming
26. What is the difference between static and non-static methods in Java?
27. What is the output of `System.out.println(10 + "20");`?
28. How are mouse events handled in JavaFX?
29. Explain thread priority in Java.
30. What is the difference between String and StringBuffer classes?
10-Mark Questions
Miscellaneous
46. Write a Java program to calculate the factorial of a number using recursion.
47. Compare and contrast while, do-while, and for loops with examples.
48. Discuss the advantages and disadvantages of Object-Oriented Programming compared
to procedural programming.
49. Explain inter-thread communication in Java with an example program.
50. Write a program to demonstrate the event handling mechanism in JavaFX.
10-Mark Questions: