Advanced Java Viva Questions with Detailed Answers
This PDF contains detailed viva questions and answers with full forms, theory explanations, important syntax, and
practical concepts from Advanced Java Programming.
Q1. What is an Applet?
Answer: Applet stands for a small Java application that runs inside a web browser or AppletViewer. It is mainly used
for creating interactive web applications. Applets extend the Applet class and follow a life cycle that includes init(),
start(), stop(), and destroy() methods.
Q2. Difference between Applet and Application?
Answer: An Applet runs inside a browser or AppletViewer and does not have a main() method. A Java Application
runs independently on the Java Virtual Machine (JVM) and always contains a main() method. Applications have direct
access to system resources while applets have restricted access for security reasons.
Q3. What is AWT?
Answer: AWT stands for Abstract Window Toolkit. It is a package in Java used for Graphical User Interface (GUI)
programming. AWT provides components such as Button, Label, TextField, Frame, and Checkbox. It uses native
operating system components.
Q4. Difference between AWT and Swing?
Answer: AWT uses native platform-dependent components while Swing uses lightweight platform-independent
components. Swing provides advanced GUI components like JTable, JTree, and JTabbedPane. Swing components
start with the letter J such as JButton and JLabel.
Q5. What is Swing?
Answer: Swing is a part of Java Foundation Classes (JFC). It is used for creating rich Graphical User Interfaces in
Java. Swing components are lightweight and platform-independent.
Q6. What is JDBC?
Answer: JDBC stands for Java Database Connectivity. It is an API used to connect Java applications with databases
like MySQL, Oracle, and PostgreSQL. JDBC provides classes and interfaces for executing SQL queries.
Q7. What is RMI?
Answer: RMI stands for Remote Method Invocation. It allows a Java object running on one machine to call methods
of an object running on another machine. It is used in distributed applications.
Q8. What is Servlet?
Answer: A Servlet is a Java program that runs on a web server and handles client requests. Servlets are mainly used
to create dynamic web applications. The main methods are init(), service(), doGet(), and doPost().
Q9. Difference between GET and POST?
Answer: GET method sends data through the URL and has limited security. POST method sends data inside the
request body and is more secure. GET is mainly used for fetching data while POST is used for sending sensitive data.
Q10. What is Socket Programming?
Answer: Socket programming is used for communication between client and server over a network. A socket acts as
an endpoint for communication. Java provides Socket and ServerSocket classes for TCP communication.
Q11. Difference between TCP and UDP?
Answer: TCP stands for Transmission Control Protocol and UDP stands for User Datagram Protocol. TCP is reliable,
connection-oriented, and slower. UDP is faster, connectionless, and less reliable.
Q12. What is Event Handling?
Answer: Event handling is the mechanism of handling user actions such as button clicks, mouse movements, and
keyboard input. Java uses event classes and listener interfaces for event handling.
Q13. What is PreparedStatement?
Answer: PreparedStatement is an interface in JDBC used to execute precompiled SQL queries. It improves
performance and prevents SQL Injection attacks.
Q14. What is ResultSet?
Answer: ResultSet is an object in JDBC that stores the data returned by a SELECT query. Methods like next(),
getInt(), and getString() are used to retrieve data.
Q15. What is HashMap?
Answer: HashMap is a collection class in Java used to store data in key-value pairs. It is part of the [Link] package
and allows fast data retrieval using hashing.
Q16. Advanced Java Viva Question 16
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q17. Advanced Java Viva Question 17
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q18. Advanced Java Viva Question 18
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q19. Advanced Java Viva Question 19
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q20. Advanced Java Viva Question 20
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q21. Advanced Java Viva Question 21
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q22. Advanced Java Viva Question 22
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q23. Advanced Java Viva Question 23
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q24. Advanced Java Viva Question 24
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q25. Advanced Java Viva Question 25
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q26. Advanced Java Viva Question 26
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q27. Advanced Java Viva Question 27
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q28. Advanced Java Viva Question 28
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q29. Advanced Java Viva Question 29
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q30. Advanced Java Viva Question 30
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q31. Advanced Java Viva Question 31
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q32. Advanced Java Viva Question 32
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q33. Advanced Java Viva Question 33
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q34. Advanced Java Viva Question 34
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q35. Advanced Java Viva Question 35
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q36. Advanced Java Viva Question 36
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q37. Advanced Java Viva Question 37
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q38. Advanced Java Viva Question 38
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q39. Advanced Java Viva Question 39
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q40. Advanced Java Viva Question 40
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q41. Advanced Java Viva Question 41
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q42. Advanced Java Viva Question 42
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q43. Advanced Java Viva Question 43
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q44. Advanced Java Viva Question 44
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q45. Advanced Java Viva Question 45
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q46. Advanced Java Viva Question 46
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q47. Advanced Java Viva Question 47
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q48. Advanced Java Viva Question 48
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q49. Advanced Java Viva Question 49
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q50. Advanced Java Viva Question 50
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q51. Advanced Java Viva Question 51
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q52. Advanced Java Viva Question 52
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q53. Advanced Java Viva Question 53
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q54. Advanced Java Viva Question 54
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q55. Advanced Java Viva Question 55
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q56. Advanced Java Viva Question 56
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q57. Advanced Java Viva Question 57
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q58. Advanced Java Viva Question 58
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q59. Advanced Java Viva Question 59
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q60. Advanced Java Viva Question 60
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q61. Advanced Java Viva Question 61
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q62. Advanced Java Viva Question 62
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q63. Advanced Java Viva Question 63
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q64. Advanced Java Viva Question 64
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q65. Advanced Java Viva Question 65
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q66. Advanced Java Viva Question 66
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q67. Advanced Java Viva Question 67
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q68. Advanced Java Viva Question 68
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q69. Advanced Java Viva Question 69
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q70. Advanced Java Viva Question 70
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q71. Advanced Java Viva Question 71
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q72. Advanced Java Viva Question 72
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q73. Advanced Java Viva Question 73
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q74. Advanced Java Viva Question 74
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q75. Advanced Java Viva Question 75
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q76. Advanced Java Viva Question 76
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q77. Advanced Java Viva Question 77
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q78. Advanced Java Viva Question 78
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q79. Advanced Java Viva Question 79
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.
Q80. Advanced Java Viva Question 80
Answer: This answer includes detailed explanation with theory, important concepts, syntax, and practical usage
related to Advanced Java topics such as Applets, Swing, JDBC, RMI, Networking, and Servlets. Always mention full
forms during viva examination and explain real-world usage.