PART A
1. Write a Java program to display the following output.
1
12
123
2. What is platform independence in java?
3. What are Java tokens?
4. Differentiate append and Concatenation function in java.
5. Discuss Control structures in java.
6. What is Overriding?
7. What are the features of java?
8. What is Encapsulation?
9. Write a program java to print the prime numbers.
10. Write a program java to find whether the given number is Odd or Even.
11. What is meant by constructor? Give an example.
12. Define Class and Object with an example.
13. Write a program for “Divide by zero” Exception.
14. Write the uses of super keyword.
15. Draw life cycle of a thread.
16. Write the uses of finally in java?
17. How multiple catch blocks works?
18. Define Thread.
19. What is interface? Give example.
20. What is access specifier. Give eg.
21. What is User defined exception?
22. Difference between Multithreading and Multitasking.
PART B
1. Explain the basic concepts of Object Oriented Programming.
i. Explain with examples different data types in Java.
ii. Discuss the different access specifiers in java.
2. Explain in detail about classes and Objects with suitable example.
3. Demonstrate Overloading in detail.
4. Discuss String and its methods and String buffer and its method with suitable example.
5. What is an array? Write a program to declare and access one-dimensional and two-dimensional
arrays in Java.
6. Explain about Inheritance. List out types of Inheritance. Write a java Program to explain all type
of inheritance
i. Explain in detail the different states of a thread.
ii. Discuss the two ways of implementing a thread.
7. Explain packages in detail with suitable examples.
8. Explain in detail about Exception Handling in Java.
i. Difference between Method Overloading and Method Overriding
ii. Difference between abstract class and concrete class.
9. Explain in detail about Life cycle of thread.
10. Discuss briefly about interface with suitable example.