18CS0511-Object Oriented Programming
18CS0511-Object Oriented Programming
2. a) What is a Class, Method and Object? Write the syntax to define these in java. [ 5M ]
b) What are command line arguments? Program to add two numbers using command
line arguments. [ 5M ]
4. a) What are the varargs in java? Write the syntax and develop any program. [ 5M ]
6. Explain about the Dynamic Method Dispath in Java with example program. [ 10M ]
7. What is an abstract class? Explain all the cases to implement abstract class. [ 10M ]
8. a) Write a java program to display “Hello! Java” using Class, Object and Method. [ 5M ]
9. a) What is a package? How to create user defined package in java with example. [ 5M ]
10. Write a java program to find the factorial value of the given number using user
b) What are Java’s Built-in Exception? Write the importance of finally block. [ 5M ]
4. a) What is Multithreading? What are the ways to create multiple threads in java. [ 5M ]
5. a) How to set the priority to threads? what are the different ranges. [ 5M ]
b) Write a java program to sort the given names into ascending order. [ 5M ]
10. Write a Java program that creates three threads. First thread displays ― Good Morningǁ every
one second, the second thread displays ―Helloǁ every two seconds and the
UNIT – IV: Generics
2. Explain about Delegation Event Model in Event Handling with example. [ 10M ]
9. Write a java swing program to find the sum of two numbers. [ 10M ]
10. Write a java swing program to find the factorial of the given number. [ 10M ]
UNIT – V: Introducing the AWT
2. Write a java program to implement simple client and server program. [ 10M ]
5. Write a java program to read and display data from database. [ 10M ]
6. What are the different JDBC drivers explain with syntax. [ 10M ]
9. Write a java swaing application to perform Login Authentication using JDBC. [ 10M ]
10. a) What are the different JDBC Drivers used to connect with database. [ 5M ]