Assignments Java
Assignments Java
Module -2
Module -3
1. what is meant by interface? state its need & Write Syntax & features of interface
2. write a java program to extend interface assuming suitable data
3. Explain inheritance & polymorphism features in java
4. what is abstract class & abstract method? Explain with Example
5. which are the restriction present for static declared methods.
6. explain how interface is used to achieve multiple inheritance in java
7. what is single level inheritance? explain with suitable example
8. what are the restriction present for static declared methods
Module -4
1. what is package how do we create it, give the example to create & to access package.
2. how to add new class to a package? explain with example
3. comparison b/w abstract base class & an interface
4. what are the ways to access package from another package? Explain with example
5. Explain how to define & implements an interface with example
6. Demonstrate working of nested try block with an example
7. what is exception. What are the key term used in exception handling? Explain
8. how do you create your own exception? explain with example
Module -5
1. Define Enumeration. Give example
2. Explain how to achieve suspending, resuming & stopping threads with an example
programme
3. with syntax explain use of in ALIVE () & Joint () methods
4. ” Enumeration in java are class types “-Justify this statement with appropriate example
5. what are wrapper classes? Explain with example
6. what is multithreading? write a programme to an example how to synchronization is
implemented in java
7. Discuss Value () & Value of () methods on enumeration with suitable example
8. What is meant by thread priority? how to assign & get the thread priority