Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Advanced Java Practical Slip 22 Answers
Reviewed by technical_saurabh
on
December 15, 2022
Rating:
team-analytics.blogspot.com
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
A)
Write a java program to display name and priority of a Thread.
Answer :
public class Slip21A {
public static void main(String args[]) {
Thread t = Thread.currentThread();
t.setPriority(2);
System.out.println("Thread Name : "+t.getName());
System.out.println("Thread Prioriy : "+t.getPriority());
}
}
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.
Answer :
Output :
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
A)
Write a JDBC program to delete the details of given employee (ENo EName
Salary).
Accept employee ID through command line.
Answer :
Output :
B) Write a java program in multithreading using applet for drawing temple.
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
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.
Answer :
Output :
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
Reviewed by technical_saurabh
on
December 15, 2022
Rating: 5
Q.1.
Advanced Java:
A)
Write a JSP program to accept Name and Age of Voter and check whether he is
eligible
for voting or not.
Answer :
Output :
B)
Write a Java program to display given extension files from a specific directory
on
server machine.
Answer :
Output :
Reviewed by technical_saurabh
on
September 21, 2022
Rating: 5
Q.1.
Advanced Java:
A)
Write a java program to display name of currently executing Thread in
multithreading.
Answer :
public class Slip13A {
public static void main(String[] args) {
Thread t = Thread.currentThread();
System.out.println("Thread Name is : " + t.getName());
}
}
B)
Write a JSP program to display the details of College (CollegeID, Coll_Name,
Address)
in tabular form on browser.
Answer :
Reviewed by technical_saurabh
on
September 21, 2022
Rating: 5