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

java new index

The document lists various Java programming tasks, including printing odd numbers, calculating factorials, and implementing object-oriented concepts like constructors and polymorphism. It covers topics such as recursion, command line arguments, method overloading, and exception handling. Each task is numbered and includes a brief description of the required program functionality.

Uploaded by

chanchal92681
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)
4 views

java new index

The document lists various Java programming tasks, including printing odd numbers, calculating factorials, and implementing object-oriented concepts like constructors and polymorphism. It covers topics such as recursion, command line arguments, method overloading, and exception handling. Each task is numbered and includes a brief description of the required program functionality.

Uploaded by

chanchal92681
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
You are on page 1/ 2

INDEX

S.No Program Questions Date Signature

1
1
Write a Java program to print all odd
numbers between 1 to 10
2
Write a Java program to find out factorial
of a number through recursion
3
Write a Java program to accept command
line arguments & print them
4 Write Write a Java program to print fibonacci series

5 Write Write a Java program that creates a class accounts with following etas:
Instance variables: ac_no., name, ac_name, balance
Methods: withdrawal (), deposit (), display ().use constructors to initialize
members
6 Write

Write a Java program to implement


constructor overloading
7 Write Write a Java program to count the no. of objects created in a program

8 Write Write a Java program to show call by value & call by reference

9 Write Write a Java program to implement method over ridding & method
overloading

10
Create a class box having height, width,
depth as the instance variables &
calculate its volume. Implement
1
constructor overloading in it. Create a
subclass named box_new that has weight
as an instance variable. Use super in the
box_new class to initialize members of
the base class
11
Write a Java program to implement run
time polymorphism
12
Write a Java program to implement
interface. Create an interface named
shape having area () & perimeter () as its
methods. Create three classes circle,
rectangle & square that implement this
interface
13
Write a Java program to show multiple
inheritance
14
Write a Java program to implement
exception handling. Use try, catch &
finally
15
Write a Java program to implement
matrix multiplication by 2d array

You might also like