PDEA’s
Waghire college of Arts, Commerce and Science, Saswad
Department of Computer Science
T.Y.B.Sc.(Computer Scienece) 2025-26 sem-V
Sub :- Object Oriented Programming Using Java-I
Assignment-II
Date of submission: 16/09/2025
Q.1 Answer the following in One Sentence.
1. Define Interface
2. What is javadoc?
3. What is use of static keyword?
4. What is command line argument?
5. Define Constructor.
6. Write the use of extends key word.
7. Define functional interface.
8. List any two unchecked exception.
Q.2 Answer the following questions in Short.
1. Differentiate between final and finally keyword.
2. What is method overloading?
3. What is anonymous inner class?
4. Differentiate between String and StringBuffer class.
5. State any four features of java.
6. What is polymorphism? How to implement it at compile time?
Q. 3 Answer The following.
1. How to create and access package in a program? Explain with an example.
2. Explain the structure of java program.
3. Explain the uses of super keyword with example.
4. What is string? Explain its any three method with an example.
5. Explain the execution process of java program.
6. Write a Java program to accept a number from user. If it is zero then throw user defined
exception "Number is zero". Otherwise calculate its factorial.