0% found this document useful (0 votes)
12 views

Assignments Java

Uploaded by

cgpt81804
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Assignments Java

Uploaded by

cgpt81804
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Module -1

1. Explain four different types of IF Statements in java with example


2. Demonstrate working of break with label in java
3. Explain different lexical in java, Explain OOPS
4. Write a program to sort the elements using for loop, also discuss different version of
for-loop with example
5. Write a program to illustrate break statement with labels
6. Explain the following operation with example a) << b) >> c)>> iv)&
7. Demonstrate the working of enhanced for loop with an example
8. Explain different promotion in java

Module -2

1. what are constructor? Explain two types of constructors with example.


2. Explain memory allocation & use of garbage collector in java
3. Explain call by value & Call by reference with example program
4. Explain Static variable & Static methods in java
5. Write a java programme demonstrate method overriding
6. Comparing b/w method overloading & method overriding
7. Define recursion. write a recursion programme to find nth Fibonacci number
8. Write a program to perform stack operation using proper class & methods.

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

You might also like