java index

5

Upload: aastha-bhatia

Post on 11-May-2017

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Java Index

INDEX

S.NO. NAME OF THE PROGRAM DATE PAGENO.TEACHER’S SIGNATURE

1. Write a program to implement user defined menu based methods:

Page 2: Java Index

a) Leap year.b) * patternc) Factoriald) Print week days using switch case.

2. Write a program to implement KBC format question – answers using different methods.

3. Write a program to calculate the volume of cuboids using default constructor in the class.

4. Write a program to implement overloading of constructors in the class.

5. Write a program to implement Method overloading, where the overloadedmethod, area, is used for calculating area of circle, rectangle, volume of cuboids.

6. Write a program to implement simple inheritance using 2 functions sum_A & sum_B in different classes.

7. Write a program to implement Inheritance using constructors for initializing the variables in which super class has method calculating area of rectangle and sub class ‘s method willcalculate volume of rectangle.

8. Write a program to implement Method overriding in which over-ridded method, sum, is calculating sum of 2 numbers in base class and sum of 3 numbers in derived class.

9. Write a program to achieve multilevel inheritance.

10. Write a program to implement DYNAMIC METHOD DISPATCH (overriding of methods where).

11. Write a program to implement Explicit and Implicit Casting.

12. Write a program to implements ABSTRACT classes. (Includes the concept of runtime polymorphism, overriding of methods of abstract class.)

Page 3: Java Index

13. Write a program to find out the factorial of a given number with the use of packages. (package A -> class ABC-> fact() and package B -> class AB-> main()-> calling of fact() ).

14. Write a program to print a star design to the given number in given pattern.Star pattern is:**********…….n where n is a given number for star design.

15. Write a program to achieve the use of static keyword with variables and methods.

16. Write a program to create an interface in which methods namely, show() & area() , are declared and class implements the interface.( defines both methods in class).

17. Write a program to achieve the multiple inheritance using Interfaces where two or more interfaces are implemented by a single class.

18. Write a program to implement Nested interface.

19. Write a program to Create User Defined Exception.

20. Write a program to implement multithreading using synchronized methods, synchronized blocks.

21. Write a program to implement Collection using list.

22. Write a program to implement File Handling (create a file) using FILE class.

23. Write a program to implement JDBC Connectivity in java.

Page 4: Java Index

24. Write a program to implement the handle events generated by Frame.

25. Write a program to design a Calculator.

26. Write a program to implement concept of Networking in java.