Lab Exercise-1
1.Write a program in java to print ” Hello Java”.
1. // Your First Program
2.
3. class HelloWorld {
4. public static void main(String[] args) {
5. System.out.println("Hello, World!");
6. }
7. }
OUTPUT
Hello, World!
2. write a java program to print back counting from 100
to 1 using for loop.
3. Write a program to read a weekday number and
print weekday name using switch statement.
4. Write a java program to check the eligibility
for voting using if-else statement.
5. Write a java program to perform addition of
two matrices.
6. Write a java program to print student
details(name, age, fees) using Scanner.
7.Write a java program to import user defined
package in another package.
8.Write a java program to show how to handle
the arithmetic exception.
9. Write a java program to show the concept of
method overriding in multilevel inheritance
Lab Exercise-2
1.Write a java program to design different shapes
(line, square, rectangle, oval, arc) by using applet
2. Write a program in simple applet to display hello
world message.
3. Write a program in java using AWT graphics class to
design button, text box & label.
4. Write a java program to connect java program with
database.
Lab Exercise-3
1.Design an order entry form that contains all
the form control & elements.
2.Create a web page, showing a different list in
html.
3.Create style sheet to set formatting for text tags and
embed that style sheet on web pages created for your
site
4.Design a frameset using html tags.
5. Create a resume by using html table tags.
Lab Exercise-4
1. Write a server side program in servlet for
performing addition of two
numbers accept numbers from client side by
using html forms
2. Write a server side program in JSP for
calculating simple interest accept
the necessary parameters from client side by
using html forms