Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Semester – VI (CBCS 2019 Pattern) University Practical Examination Lab Course: (CA-606) Computer Laboratory Based on 603 Advance Java, Android Programming
Advance Java TYBBA(CA) Practical Slips Solution 2023 :-
Slip 1
A) Write a java program to scroll the text from left to right and vice versa continuously
B) Write a socket program in java for chatting application.(Use Swing)
Slip 2
A) Write a JSP program to check whether given number is Perfect or not. (Use Include
directive).
B) Write a java program in multithreading using applet for drawing flag.
Slip 3
A) Write a socket program in Java to check whether given number is prime or not.
Display result on client terminal.
B) Write a java program using applet for bouncing ball, for each bounce color of ball should change randomly.
Slip 4
A) Write a Java Program to delete details of students whose initial character of their name is ‘S’.
B) 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
A) 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.
B) Write a java program in multithreading using applet for Traffic signal.
Slip 6
A) Write a java program to blink image on the Frame continuously.
B) Write a SERVLET program which counts how many times a user has visited a web page. If user is visiting the page for the first time, display a welcome message. If the user is revisiting the page, display the number of times visited. (Use Cookie)
Slip 7
A) Write a JSP script to validate given E-Mail ID.
B) Write 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).
Slip 8
A) Write a Java Program to display all the employee names whose initial character of a name is ‘A’.
B) Write a java program in multithreading using applet for Digital watch.
Slip 9
A) Write a Java Program to create a Emp (ENo, EName, Sal) table and insert record into it. (Use PreparedStatement Interface)
B) Write a JSP program to create an online shopping mall. User must be allowed to do purchase from two pages. Each page should have a page total. The third page should display a bill, which consists of a page total of whatever the purchase has been done and print the total.
(Use Session)
Slip 10
A) Write a java Program in Hibernate to display “Hello world” message.
B) Write a SERVLET program to display the details of Product (ProdCode, PName,
Price) on the browser in tabular format. (Use database)
Slip 11
A) Write a java program to display IPAddress and name of client machine.
B) Write 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
A) Write a java program to count the number of records in a table.
B) Write 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
A) Write a java program to display name of currently executing Thread in multithreading.
B) Write a JSP program to display the details of College (CollegeID, Coll_Name, Address) in tabular form on browser.
Slip 14
A) Write a JSP program to accept Name and Age of Voter and check whether he is eligible for voting or not.
B) Write a Java program to display given extension files from a specific directory on server machine.
Slip 15
A) Write a java program to display each alphabet after 2 seconds between ‘a’ to ‘z’.
B) Write 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 16
A) Write a JSP script to accept username and password from user, if they are same then display “Login Successfully” message in Login.html file, otherwise display “Login Failed” Message in Error.html file.
B) Write a Java program to accept the details of students (rno, sname, per) at least 5 Records, store it into database and display the details of student having highest percentage. (Use PreparedStatement Interface)
Slip 17
A) Write a java program to accept a String from user and display each vowel from a String after 3 seconds.
B) Write 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
A) Write a java program to calculate factorial of a number. (Use sleep () method).
B) Write a java program for simple standalone chatting application.
Slip 19
A) Write a JSP program which accept UserName in a TextBox and greets the user according to the time on server machine.
B) Write a Java program to display first record from student table (rno, sname, per) onto the TextFields by clicking on button. (Assume Student table is already created).
Slip 20
A) Write a JDBC program to delete the details of given employee (ENo EName Salary). Accept employee ID through command line.
B) Write a java program in multithreading using applet for drawing temple.
Slip 21
A) Write a java program to display name and priority of a Thread.
B) Write a SERVLET program in java to accept details of student (SeatNo, Stud_Name, Class, Total_Marks). Calculate percentage and grade obtained and display details on page.
Slip 22
A) Write a java program to display Date and Time of Server machine on client machine.
B) Write a JSP program to accept the details of Account (ANo, Type, Bal) and store it into database and display it in tabular form.
Slip 23
A) Write a Java Program to display the details of College(CID, CName, address, Year) on JTable.
B) Write a SERVLET application to accept username and password, search them into database, if found then display appropriate message on the browser otherwise display error message.
Slip 24
A) Create a JSP page to accept a number from a user and display it in words:
Example: 123 – One Two Three. The output should be in red color.
B) Write a menu driven program in Java for the following: Assume Emp table with attributes ( ENo, EName, salary, Desg ) is already created.
1. Insert
2. Update
3. Delete
4. Search
5. Display
6. Exit.
Slip 25
A) Write a Java program to accept a number through client terminal, send it to the Server, Server calculates its factors and sends it to the client.
B) Write a Java Program for the following: Assume database is already created.
Slip 26
A) Write a java program to display list of college names from college table. (Assume College table (CID, CName, addr) is already created.
B) Write 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 27
A) Write a JSP script to accept the details of Teacher (TID, TName, Desg, Subject , Qualification) and display it on the browser. Use appropriate controls for accepting data.
B) Write a Java Program for the implementation of scrollable ResultSet. Assume Teacher table with attributes (TID, TName, Salary, Subject) is already created.
Slip 28
A) Write a java program for the implementation of synchronization.
B) Write a Java program to design a following screen:
Slip 29
A) Write 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.
B) Write a SERVLET program to change inactive time interval of session.
Slip 30
A) Write a JSP script to accept a String from a user and display it in reverse order.
B) Write a java program in multithreading using applet for moving car.
comment 0 Comment
more_vert