0% found this document useful (0 votes)
116 views2 pages

Index

The document contains 36 questions related to Java programming concepts and tasks. The questions cover topics such as classes and objects, inheritance, polymorphism, exceptions, file handling, GUI programming using AWT and Swing, database programming using JDBC, remote method invocation using RMI, and multithreading and synchronization. The student is expected to write programs to demonstrate their understanding of these Java concepts.

Uploaded by

Gaurav Gambhir
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)
116 views2 pages

Index

The document contains 36 questions related to Java programming concepts and tasks. The questions cover topics such as classes and objects, inheritance, polymorphism, exceptions, file handling, GUI programming using AWT and Swing, database programming using JDBC, remote method invocation using RMI, and multithreading and synchronization. The student is expected to write programs to demonstrate their understanding of these Java concepts.

Uploaded by

Gaurav Gambhir
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

S.NO.

QUESTIONS SIGNATURE
1. WAP to print all odd numbers between 1 to 10.
2. WAP to find out factorial of a number through recursion.
3. WAP to accept Command line arguments & print them.
4. WAP to print Fibonacci series.
5. WAP that creates a class Accounts with following details: Instance
variables: ac_no., name, ac_name, balance. Methods: withdrawal (),
deposit (), display ().Use constructors to initialize members.

6. WAP to implement constructor overloading.


7. WAP to count the no. of objects created in a program.
8. WAP to show call by value & call by reference.
9. WAP to implement method over ridding & method overloading.

10. Create a class box having height, width, depth as the instance variables
& calculate its volume. Implement 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. WAP to implement Run time polymorphism.


12. WAP 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. WAP to show multiple inheritance.


14. WAP to implement exception handling. Use try, catch & finally.

15. Create a user defined exception named “NoMatchException” that is


fired when the string entered by the user is not “india”.

16. WAP to show even & odd numbers by thread.

17. WAP that draws different color shapes on an applet. Set the
foreground & background color as red & blue.
18. WAP to show moving banner by applet.
19. WAP to implement Matrix multiplication by 2D array.
20. WAP to implement Vector. [Use:
addElement(),elementAt().removeElement(),size().]
21. WAP to demonstrate the use of equals(), trim() ,length() , substring(),
compareTo() of String class.
22. WAP to demonstrate the use of equals() and == in java.
23. WAP to implement file handling(both reading & writing to a file)

24. WAP to implement all mouse events and mouse motion events.

25. WAP to implement keyboard events.


26. WAP using AWT to create a simple calculator.
27. Create a login form using AWT controls like labels,buttons, textboxes,
checkboxes, list, checkboxgroup. The selected checkbox item names
should be displayed.

28.- WAP to show all Layout managers. (4 Layout managers).


31.
32. Create a simple JDBC program that creates a table, stores data into it,
retrieves & prints the data.
33. Create an Applet with two buttons named ‘Audio’ and ‘Image’. When
user will press button ‘audio’ then an audio file should play in applet,
and if user press button ‘Image’ then an image should see in applet
window.
34. WAP in Java to demonstrate the application of RMI (Remote Method
Invocation).
35. Create a Java applet with three buttons ‘Red’,’Green’,’Blue’.
Whenever user press any button the corresponding color should be seen
as background color in an applet window.

36. WAP in java to implement the concept of ‘synchronization’ using


thread.

You might also like