0% found this document useful (0 votes)
6 views7 pages

Practice Programs Java - Dot Net

The document outlines a series of practice programs for Advanced Java and .NET, categorized into slips with specific programming tasks. Each slip contains multiple exercises, including socket programming, JSP, multithreading, and database operations for Java, as well as VB.NET and C# tasks for .NET applications. The tasks range from simple input/output operations to more complex applications involving user interfaces and database interactions.

Uploaded by

Vanshika Patel
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)
6 views7 pages

Practice Programs Java - Dot Net

The document outlines a series of practice programs for Advanced Java and .NET, categorized into slips with specific programming tasks. Each slip contains multiple exercises, including socket programming, JSP, multithreading, and database operations for Java, as well as VB.NET and C# tasks for .NET applications. The tasks range from simple input/output operations to more complex applications involving user interfaces and database interactions.

Uploaded by

Vanshika Patel
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

Practice programs Adv.

Java

Slip1

1. Write a java program to scroll the text from left to right and vice versa continuously.
2. Write a socket program in java for chatting application.(Use Swing)

Slip2

3. Write a JSP program to check whether given number is Perfect or not. (Use Include directive).
4. Write a java program in multithreading using applet for drawing flag.

Slip3

5. Write a socket program in Java to check whether given number is prime or not. Display result on
client terminal.

[Link] a java program using applet for bouncing ball, for each bounce color of ball should change
randomly.

Slip 4

7. Write a Java Program to delete details of students whose initial character of their name is ‘S’.

8. Write a SERVLET program that provides information about a HTTP request from a client, such
as IP address and browser type. The servlet also provides information about the server on which
the servlet is running, such as the operating system type, and the names of currently loaded
servlets.

Slip 5

9. Write a JSP program to calculate sum of first and last digit of a given number. Display sum in
Red Color with font size 18.

[Link] a java program in multithreading using applet for Traffic signal.

Slip8

[Link] a Java Program to display all the employee names whose initial character of a name is ‘A’.
[Link] a java program in multithreading using applet for Digital watch.
Slip 11

[Link] a java program to display IPAddress and name of client machine

[Link] a Java program to display sales details of Product (PID, PName, Qty, Rate, Amount)
between two selected dates. (Assume Sales table is already created).

Slip 12

[Link] a java program to count the number of records in a table.

[Link] a program in java which will show lifecycle (creation, sleep, and dead) of a thread.
Program should print randomly the name of thread and value of sleep time. The name of the
thread should be hard coded through constructor. The sleep time of a thread will be a random
integer in the range 0 to 4999.

Slip 13

[Link] a java program to display name of currently executing Thread in multithreading.

[Link] a JSP program to display the details of College (CollegeID, Coll_Name, Address) in
tabular form on browser.

Slip 14

[Link] a JSP program to accept Name and Age of Voter and check whether he is eligible for
voting or not.

[Link] a Java program to display given extension files from a specific directory on server
machine.

Slip 15

[Link] a java program to display each alphabet after 2 seconds between ‘a’ to ‘z’.

[Link] a Java program to accept the details of Student (RNo, SName, Per, Gender, Class) and
store into the database. (Use appropriate Swing Components and PreparedStatement Interface)

Slip 17

[Link] a java program to accept a String from user and display each vowel from a String after 3
seconds.

[Link] a Java program to check whether given file is present on server or not, if it is there then
display its contents on client’s terminal otherwise display the message “File Not Found”.
Slip 18

[Link] a java program to calculate factorial of a number. (Use sleep () method).

[Link] a java program for simple standalone chatting application.

Slip 20

[Link] a JDBC program to delete the details of given employee (ENo EName Salary). Accept
employee ID through command line.

[Link] a java program in multithreading using applet for drawing temple.

Slip 26

[Link] a java program to display list of college names from college table. (Assume College table
(CID, CName, addr) is already created.

[Link] a SERVLET program to Design an HTML page containing 4 option buttons (Painting,
Drawing, Singing and swimming) and 2 buttons reset and submit. When the user clicks submit, the
server responds by adding cookie containing the selected hobby and sends the HTML page to the
client. Program should not allow duplicate cookies to be written.

Slip 29

[Link] a java program using multithreading for the following:


1. Display all the odd numbers between 1 to n.
2. Display all the prime numbers between 1 to n.

[Link] a SERVLET program to change inactive time interval of session.

Slip 30

[Link] a JSP script to accept a String from a user and display it in reverse order.

[Link] a java program in multithreading using applet for moving car.

Slip 7

[Link] a JSP script to validate given E-Mail ID.

[Link] a Multithreading program in java to display the number’s between 1 to 100 continuously in
a TextField by clicking on button. (use Runnable Interface).
Practice programs Dot net

Slip 1

1. Write a [Link] Program to display the numbers continuously in TextBox by clicking on Button.

2. Write a [Link] program to accept the details of Employee (ENO, EName Salary) and store it into
the database and display it on gridview control.

Slip2

3. Write a [Link] program to move the Text “Pune University” continuously from Left to Right and
Vice Versa.
4. Write a [Link] program to create a table student (Roll No, SName, Class,City). Insert the
records (Max: 5). Update city of students to ‘Pune’ whose city is ‘Mumbai’ and display updated
records in GridView

Slip 3

5. Write a program in C# .Net to create a function for the sum of two numbers.

6. Write a [Link] program to create teacher table (Tid, TName, subject) Insert the records (Max:
5). Search record of a teacher whose name is “Seeta” and display result.

Slip 4

7. Design a [Link] form to pick a date from DateTimePicker Control and display day, month and
year in separate text boxes.

8. Create a web application to insert 3 records inside the SQL database table having following fields (
DeptId, DeptName, EmpName, Salary). Update the salary for any one employee and increment it
to 15% of the present salary. Perform delete operation on one row of the database table.

Slip 5

9. Write a [Link] program to accept a character from keyboard and check whether it is vowel or
consonant. Also display the case of that character.
[Link] a web application form in [Link] having loan amount ,interest rate and duration
[Link] the simple intrest and perform necessary validation i.e. Ensures data has been
entered for each entered for each field .Checking for non-numeric [Link] suitable web-form
controls and perform necessary validation .

Slip 6

11Write [Link] program that displays the names of some flowers into [Link] a label to
the RadioButtonList so that when the user selects an option from the list and clicks ona button ,the
label displays the flower selected by the user.

[Link] a [Link] program to create movie table (Mv_Name, Release_year, Director). Insert the
records (Max: 5). Delete the records of movies whose release year is 2022 and display
appropriate message in message box.

Slip8

[Link] of employees is available in listbox .Write [Link] application to add selected or all records from
listbox to textBox (assume multi-line property of textbox is true).

[Link] a c#.Net program for multiplication of matrices.

Slip 11

[Link] a [Link] program that gets user input such as the user name, mode of payment,
appropriate credit card. After the user enters the appropriate values the Validation button validates
the values entered.

[Link] C# program to make a class named Fruit with a data member to calculate the number of
fruits in a basket. Create two other class named Apples and Mangoes to calculate the number of
apples and mangoes in the basket. Display total number of fruits in the basket.

Slip 12

[Link] [Link] program that displays a button in green color and it should change into yellow
when the mouse moves over it.

[Link] a [Link] program to create player table (PID, PName, Game, no_of_matches). Insert
records and update number of matches of ‘Rohit Sharma’ and display result in data grid view.

Slip 13

[Link] a [Link] program for blinking an image.

[Link] a C# Program to accept and display ‘n’ student’s details such as Roll. No, Name, marks in
three subjects, using class. Display percentage of each student.
Slip 14

[Link] a program in C#.Net to find the sum of all elements of the array.

[Link] a C#.Net Program to define a class Person having members –name, address. Create a
subclass called employee with member staffed, salary. Create ‘n’ objects of the Employee class
and display all the details of the Employee.

Slip 15

[Link] [Link] application to create a user control that contains a list of colors. Add a button to
the Web Form which when clicked changes the color of the form to the color selected from the
list.

[Link] a C#.Net Program to accept and display ‘n’ customer’s details such as customer_no, Name,
address ,itemno, quantity price . Display total price of all item.

Slip 17

[Link] a C#.Net application to display the vowels from a given String.

[Link] a [Link] program to accept the details of product (PID, PName, expiry_date, price). Store
it into the database and display it on data grid view.

Slip 18

[Link] a [Link] program to accept a number from user through input box and display its
multiplication table into the list box.

28Write [Link] program containing the following controls :

Listbox

Button

Image

Label

The listbox is used to list items available in a store .When the user clicks on an item in the
listbox ,its image is displayed in the image control .When the user clicks the button,the cost of
the selected item is displayed in the control.

Slip 20

[Link] a [Link] program to generate Sample Tree View control.

[Link] a Web application in [Link] that generates the “IndexOutOfRange” exception when a
button is clicked. Instead of displaying the above exception, it redirects the user to a custom error
page. All the above should be done with the trace for the page being enabled.
Slip 26

[Link] a program in C#.Net to create a recursive function to find the factorial of a given number

[Link] a [Link] program to create a Login Module which adds Username and Password in the
database. Username in the database should be a primary key.

Slip 28

34Write a Program in C#.Net to read n numbers in an array and display it in reverse order.

[Link] a [Link] program to create player table (PID, PName, Game, no_of_matches). Insert records
and update number of matches of ‘Rohit Sharma’ and display result in data grid view

Slip 29

[Link] a program in C#.Net to separate the individual characters from a String.

[Link] a [Link] program to accept the details of customer (CName, Contact No, Email_id).
Store it into the database with proper validation and display appropriate message by using
Message box.

Slip 30

[Link] a [Link] program to design following screen, accept the details from the user. Clicking
on Submit button Net Salary should be calculated and displayed into the Textbox. Display the
Messagebox informing the Name and Net Salary of employee.

[Link] a [Link] program to accept the details Supplier (SupId, SupName, Phone No, Address)
store it into the database and display it.

Slip 7

[Link] a [Link] program to accept a number from the user in a textbox control and throw an
exception if the number is not a perfect number. Assume suitable controls on the web form.

[Link] a [Link] program to create a table student (Roll No, SName, Class,City). Insert the
records (Max: 5). Update city of students to ‘Pune’ whose city is ‘Mumbai’ and display updated
records in GridView.

*******************

You might also like