0% found this document useful (0 votes)
13 views1 page

Object Oriented Programming Using Java-I Assigment-1

This document is an assignment for T.Y.B.Sc. Computer Science students at Waghire College, focusing on Object Oriented Programming using Java. It includes a series of questions that require one-sentence answers, short explanations, and Java programming tasks related to concepts such as constructors, exception handling, interfaces, and file operations. The assignment is due on September 9, 2025.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

Object Oriented Programming Using Java-I Assigment-1

This document is an assignment for T.Y.B.Sc. Computer Science students at Waghire College, focusing on Object Oriented Programming using Java. It includes a series of questions that require one-sentence answers, short explanations, and Java programming tasks related to concepts such as constructors, exception handling, interfaces, and file operations. The assignment is due on September 9, 2025.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PDEA’s

Waghire college of Arts, Commerce and Science, Saswad


Department of Computer Science
[Link].(Computer Scienece) 2025-26 sem-V
Sub :- Object Oriented Programming Using Java-I
Assignment-I
Date of submission: 09/09/2025

Q.1 Answer the following in One Sentence.

1. What is use of Javac?


2. Give the name of any two wrapper classes.
3. What is use of 'implements' keyword?
4. List types of constructor. e)
5. What is use of Array?
6. What is exception?
7. What is package?
8. What is use of new operator?

Q.2 Answer the following questions in Short


1. 'When constructor of class will be called?' Comment.
2. What is command line argument? Where they are stored in a program.
3. Differentiate between method overloading and method overriding.
4. Explain any two access specifiers.
5. List any two methods of StringBuffer class.
6. What is use of 'throw' keyword.

Q. 3 Answer The following.


1. Define an interface Shape with abstract method area( ). Inherit interface shape into the class
[Link] a Java Program to calculate area of Triangle.
2. Write a Java Program to copy the contents form one file into another file. While copying,
change the case of cell the alphabets & replace all the digital by '*'.
3. Define an interface shape with abstract method area( ). Write a Java program to calculate area
of rectangle.
4. Write a java program to copy the content from one file to another file, while copying change
the case of alphabets.
5. Define abstract class Shape with abstract method area (). Write a java program to calculate
area of circle.
6. Write a java program to delete the files having extension. txt. (Use command line arguments)
7. What is inheritance? Explain multilevel inheritance with an example.

You might also like