Assignment
1. Explain the features in JAVA.
2. What do you mean by JVM? Explain their working mechanism.
3. What do you mean by java applets? How it is differ from java program? Explain.
4. Differentiate between object oriented programming and procedure oriented
programming.
5. What is data type? Explain fundamental data types with suitable example.
6. What is jagged array? Write a java program to initialize and display jagged array element
with sum of each row.
7. Define switch statement. Write down their syntax and explain with suitable example.
8. Define operator. List out the possible operators using in java programming and describe
bitwise operator with suitable example.
9. Define array and multidimensional array. Write a program to read two m x n matrices,
perform multiplication operation and store result in third matrix.
10. What is class? How it is declared in java? Explain.
11. What is constructor? Describe their types.
12. What is constructor overloading? Explain with suitable example.
13. What is the use of static keyword? Explain static data, static method and static block
with suitable example.
14. What is access control in java? Explain their types with examples.
15. Explain nested and inner classes in java with examples. Discuss the scenarios where
inner classes are useful.
16. What is inheritance? Describe multiple inheritance with example.
17. What is interface? How it is differ from class? Explain.
18. Describe method overriding and method overloading with suitable example.
19. What is package in java? Describe their types with suitable example.
20. What are the uses of super keyword in java? Explain their uses with suitable example.
21. Explain the Serializable interface in java with an example.
22. How can you handle an exception in java? Explain with an example.
23. How can you catch multiple exception? Describe.
24. Difference between String, StringBuffer and StringBuilder?
25. How to convert String to char and vice versa?
26. Describe the complete life cycle of a thread.
27. How inter thread communication is possible between multiple threads. Explain with
suitable example.
28. What is IO stream? Describe FileInputStream and FileOutputStream.
29. What is serialization and deserialization? Explain with example.
30. What is a wrapper class? Explain each classes in detail.
31. What is package? Why are they used? Describe built-in package and user-defined
package.
32. How HashMap works in Java?
33. What is difference between Array and ArrayList? When will you use Array over
ArrayList?
34. Explain ArrayList vs LinkedList with examples.
35. Differentiate between swing and AWT.
36. What is adapter class? List different adapter classes used in java. Describe container in
java.
37. Explain life cycle of an applet.
38. Write steps for connectivity between java program and database.
39. Describe different types of JDBC drivers.
40. What is JDBC? Explain its architecture.