JAVA VI SEMESTER – ALL ANSWERS (ENGLISH)
1. Data Types in Java:
Primitive: byte, short, int, long, float, double, char, boolean.
Non-Primitive: String, Arrays, Class, Object, Interface.
2. String & StringBuffer:
String is immutable. StringBuffer is mutable.
3. Constructor:
Special method called during object creation.
Types: Default, Parameterized.
4. Vector:
Dynamic array; synchronized.
5. Adapter Class:
Provides empty method implementations of an interface.
6. Inheritance:
One class acquiring properties of another.
7. Exception Handling:
Managing runtime errors. Keywords: try, catch, finally, throw, throws.
8. Multithreading:
Executing multiple tasks simultaneously.
9. AWT Components:
Button, Label, TextField, Checkbox, Frame, Panel, etc.
10. Applet:
Small Java program that runs in browser.
11. JDBC:
Java Database Connectivity. Drivers: JDBC-ODBC, Native API, Network Protocol, Thin driver.
12. Selection:
Decision-making statements like if, switch.
13. TCP/IP Socket:
Reliable connection-oriented communication.
14. Tag:
Provides metadata. Attributes: charset, name, content, http-equiv.
15. Image Map:
Clickable areas on an image.
16. HTML Student Form:
Form with name, email, phone, gender, course fields.
17. Datagram Socket:
Used for UDP communication.
18. JSP:
Server-side technology with HTML + Java.
19. Servlet:
Java program that runs on server to generate dynamic pages.
20. Differences:
GET vs POST, String vs StringBuffer, JDBC vs ODBC, JSP vs Servlet, Static vs Dynamic Pages,
Applet vs Application.