java new index
java new index
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
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