Java Programming Lab .Image - Marked
Java Programming Lab .Image - Marked
SCHOOL OF IT
Academic Session: 2019-2020
Java Programming & Dynamic Webpage Design
List of Practical
Q1. Write a program to print Fibonacci series.
1 1 1
22 12 12
Q3. Write a program to read the given input array of marks and find the allocated division as follows:-
Marks Division
>= 80 Honors
Else False
Q4. Write a program that has overloaded methods. The first method should accept no arguments, the
second method will accept one string and the third method will accept a string and an integer. The
first method should display the message “Rose is beautiful flower” twice. The second method should
display the message “Sunflower is a beautiful flower” five times. The third method should display
the message “Marigold is a beautiful flower” by number of times values received in the argument.
Q5. Write a Java Program to define a class, describe its constructor, overload the Constructors and
instantiate its object.
Q6. Create a class called Numeral that has an array of 10 integers. Create a subclass called
NumberPlay which has a menu as follows:-
Q7. Write a program that will display the message “Weight of bundle- 5 kgs” in a constructor and
display the weight in kilograms and grams passed as an argument.
Q8. Create an abstract class Shape to describe a shape with two dimensions. Define a method to
display the area of shape. Create two subclasses : Rectangle and Triangle. Call the display function
using reference variable of the class shape.
Q9. Write a program to create an array of string and sort the array elements in alphabetical order.
Q10. Write a Java Program to implement inheritance and demonstrate use of method overriding.
Q12. Write a Java Program to implement multilevel inheritance by applying various access controls to
its data members and methods.
Q13. Writa a program to create three thread class A,B and C. Thread class A will print each value of
defined array, B class will print a message 10 time. Class C will responsible for printing the value
from 1 to 10 and sleep for few time when reached the value 5.
Q14. Write a program using HTML to create a virtual lab related to any subject of your choice.
Q15. Write a program using HTML to prepare a simple student registration form .
Q16. Write a program to show the functioning of atleast 10 string handling function
Q18. Writa a program using applet to handle the various checkbox event.
Q19. Write a program using applet to handle the button click event.
Q21. Write a program using AWT to implement a simple students’s registration form..
Q22. Write a program to convert a decimal number into binary and vice versa.
Q24.Write a program using JDBC to fetch the detail of employees from existing database whose
salary > 5000.
Q25. Write a program using JDBC to fetch the detail of required student from existing database
whose id > 4.
Q26. Write a program using socket programming for data communication between client and server
over socket.
Q27. Write a program using socket programming in which client will receive a value from the user
and send it to server over socket connection. Server is responsible for generating the factorial of the
given number as well as find the Fibonacci series upto that limit.
Q28. Write a program using socket programming to create a chat server application.