BCS306A OOC Assignement3
BCS306A OOC Assignement3
Assignment III
Course Title: Object Oriented Programming with
Course Code: BCS306A Maximum Marks: 10
JAVA
Semester: III Section: B Due Date: 10/12/2024
Module-4
Explain the concept of importing packages in Java and provide an example demonstrating the usage CO4
3
of the import statement
Explain the exception handling mechanism in java Develop a java program to handle the exceptions CO4
4
using multiple catch blocks/clauses.
Define exception and exception handling.
5 Explain the following terms with example:
i) try ii) catch iii)throw iv) throws v) finally
How do you create your own exception class? Explain with a program CO4
6
Write a program that contains one method that will throw an IllegalAccessException and use proper
7
exception handles so that the exception should be printed.
Module-5
What do you mean by multithreading? Explain the different ways of creating threads. CO5
8
What is the need of synchronization? Explain with an example how synchronization is implemented in JAVA
CO5
10
With example,explain the following: CO5
11 i) Enumerations ii) Type Wrappers
Explain auto-boxing/unboxing that occurs in expressions and operators.
CO5
12