0% found this document useful (0 votes)
8 views2 pages

Java Assignment For Remedial Class

This document is a remedial assignment for Object Oriented Programming with Java at Inderprastha Engineering College, detailing various questions and tasks related to Java programming concepts. It includes sections on exceptions, synchronization, inheritance, multithreading, polymorphism, constructors, abstraction, and interfaces, requiring students to provide explanations and write Java programs. The assignment is structured into three sections with varying marks allocation for different questions.

Uploaded by

neetisinhasaxena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Java Assignment For Remedial Class

This document is a remedial assignment for Object Oriented Programming with Java at Inderprastha Engineering College, detailing various questions and tasks related to Java programming concepts. It includes sections on exceptions, synchronization, inheritance, multithreading, polymorphism, constructors, abstraction, and interfaces, requiring students to provide explanations and write Java programs. The assignment is structured into three sections with varying marks allocation for different questions.

Uploaded by

neetisinhasaxena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

INDERPRASTHA ENGINEERING COLLEGE, GHAZIABAD

Department of Data Science


Remedial Assignment - Object oriented programming with Java
Sub Oops with Sub Code: BCS 403 Semester: IV
Name: Java

Section A
Attempt all parts (5X 2 = 10 Marks)
Q1
A CO K1
B CO K1
C CO K1
Differentiate between checked and unchecked [Link] a programe to CO K2
lD Airthmetic Exception handling.
E What is a package in Java? Write down all the steps for package creation?. CO K2

Section B
Answer Three out of Four Questions (3 X 5 = 15
Marks)
CO K3
Q2. Describe synchronization? What is the need of synchronization explain with
suitable example.?
Describe the various types of inheritance in Java with examples. Why is CO K3
Q3. multiple inheritance not supported directly in Java?
Explain the concept of multithreading and their life cycle Also explain which CO K4
method is more suitable to create threads? Write a Java program to create two
Q4. threads where one thread prints the table of 5, and the other thread prints the
table of 7?.
Define an Exception What are the key terms used in Exception handling CO K4
Q5. explain ?How do you create your own exceptionclass?explain with a program?

Section C
Answer Four out of Five Questions (4 X 5 = 20
Marks)
Explain the difference between byte streams and character streams in Java. CO K5
Q6. Write a program in Java to copy data from one file to another file.
Explain the difference between compile-time polymorphism and run-time CO K5
polymorphism. Also, write a Java program with a superclass Shape containing
Q7. the method dispArea() and a subclass Rectangle that overrides this method to
demonstrate runtime polymorphism
Explain constructor and their application in java. Describe the type of CO K5
constructor used in java Writte a class with name Student with attributes
Q8.
roll_number, name,branch and email. Write all argument constructor for
class student and create two objects with their constructor.
Explain Abstraction and Abstract classes in java. Describe abstract CO K6
Q9. method. Write a Suitable example demonstrate the application of
abstract classes.
Q10. Explain Interfaces in java .Write a Java program to demonstrate interface CO K6
inheritance with user input. Create an interface Vehicle with a method
start(String name). Create another interface LandVehicle that extends Vehicle
and adds a method vehicleType(String name).Create a class Car that
implements the LandVehicle interface. start(String name) should print:
"<name> has started"vehicleType(String name) should print: "<name> is a
land vehicle". Take user input for the vehicle name.

(SUBJECT TEACHER) (MODERATOR)

You might also like