The document is a list of Java programming assignments for BCA students at the Vivekananda Institute of Professional Studies. It includes tasks such as printing odd numbers, implementing recursion, creating classes with methods, and handling exceptions. Additionally, it covers topics like applet creation, file handling, and JDBC programming.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
7 views
Java List Updated Bca
The document is a list of Java programming assignments for BCA students at the Vivekananda Institute of Professional Studies. It includes tasks such as printing odd numbers, implementing recursion, creating classes with methods, and handling exceptions. Additionally, it covers topics like applet creation, file handling, and JDBC programming.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Vivekananda Institute of Professional Studies
JAVA PROGAMMING LIST
BCA
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 to obtain a number by a user & check if it’s prime or not. 6. 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. 7. WAP to implement constructor overloading. 8. WAP to count the no. of objects created in a program. 9. WAP to show call by value & call by reference. 10. WAP to implement method over ridding & method overloading. 11. 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. 12. WAP to implement Run time polymorphism. 13. 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. 14. WAP to show multiple inheritance. 15. WAP to implement exception handling. Use try, catch & finally. 16. Create a user defined exception named “NoMatchException” that is fired when the string entered by the user is not “india”. 17. WAP to show even & odd numbers by thread. 18. WAP that draws different color shapes on an applet .Set the foreground & background color as red & blue. 19. WAP to show moving banner by applet. 20. WAP to implement Matrix multiplication by 2D array. 21. WAP to implement Vector. [Use: addElement(),elementAt().removeElement(),size().] 22. WAP to demonstrate the use of equals(), trim() ,length() , substring(), compareTo() of String class. 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. -31. WAP to show all Layout managers. (4 Layout managers). 32. Create a simple JDBC program that creates a table, stores data into it, retrieves & prints the data. 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.
Tshri Vile Parle Kelvani Mandal'S D. J. Sanghvi College of Engineering Department of Information Technology Semester: Iii Subject: Java Programming Lab
Tshri Vile Parle Kelvani Mandal'S D. J. Sanghvi College of Engineering Department of Information Technology Semester: Iii Subject: Java Programming Lab