PDF Google Drive Downloader v1.1


Report a problem

Content text Advance Java Programming Qns.pdf


Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Advanced Java programming 2019 Batch Group B Attempt any SIX questions 2. What is the role of Event Listener in event handling? List different event listener provided by Java. 3. What is keyEvent? Explain with proper example. 4. What is the use of RowSet interface? Explain connected and disconnected rowsets. 5. What are bounded and constrained properties in Javabeans? Explain the advantages of Java beans. 6. What are the key methods provided in HttpSession interface for handling session? Explain. 7. Explain RMI architecture in Java in detail. 8. Write short notes on (any two): a) Adapter classes b) CORBA c) Life cycle of a servlet Group C Attempt any TWO questions. 9. How frame can be created in Java? Explain. Write a program to create a GUI application in Java that identifies the smaller and greater number between two input numbers taken through two text fields and displays the result in a label. If the user presses the mouse it should display the smaller number and if the user releases the mouse it should display the greater number. 10. Explain JDBC architecture. Write a program to insert three records into a table Item which is in the database Shop and contains the columns ItemID, Name, UnitPrice, Units and ExpiryDate. 11. Differentiate between servlet and JSP. Create a servlet that computes and displays factorial of an input number entered from a page when the button from that page is pressed by the user. Don’t Forget to Follow Uni Bytes
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Advanced Java programming 2018 Batch Group B Attempt any SIX questions 2. Why do we use Panels while creating GUI applications in Java? Explain the components of the event handling model in java. 3. What are adapter classes? What is the benefit of using adapter classes in Java while creating events in GUI programs? Explain with an example. 4. How the data can be accessed through a resultset object? Explain forward only, scroll- insensitive and scroll sensitive resultsets. 5. What is a Javabean? Explain different types of properties in Javabeans. 6. What are the differences between servlets and Java applications? Explain different methods used for handling cookies in Java. 7. What are marshalling and unmarshalling of arguments in RMI? Differentiate between CORBA and RMI. 8. Write short notes on (Any Two): a) 2D shapes in swing b) MouseEvent and MouseListener c) Session tracking Group C Attempt any TWO questions. 9. Why do we need to use Layout managers while creating GUI application in Java? Explain the key interfaces required to develop any database application using Java. Also, write a program to display the records from the table Students who have got distinction and have a major subject Data science. Assume that the Student table is in the database College and contains the columns Rollno, Name, Level, Division and Major. 10. Differentiate between declaration and expression tags used in JSP. Also create a JSP page that contains three textboxes to input three numbers and a button. It should display the greatest number among three numbers when the button is clicked. 11. What is RMI? Explain its components. Write a client-server application in RMI to find the selling price of an item with cost price Rs. 5000 after a discount of Rs.50. Don’t Forget to Follow Uni Bytes
Prepared by Uni Bytes / www.unibytes.xyz Don't use our content without permission. Tribhuvan University Faculty of Humanities and Social Science Semester: VI Subject: Advanced Java programming 2017 Batch Group B Attempt any SIX questions 2. Why do we need top level container like JFrame to write Java programs with GUI? How can we display two dimensional objects in Java? 3. Explain JTextField and JTextArea components of Java swing library. 4. How do you execute SQL statements using JDBC? Explain with example. 5. Compare result set with row set. Explain prepared statement with example. 6. How do you set and get Cookie in Servlet? Explain using suitable Java program. 7. Explain different scripting elements of JSP with example. 8. Write short notes on (Any Two): a) Java web frameworks b) CORBA c) Bean bound property Group C Attempt any TWO questions. 9. Write a GUI application to find sum and difference of two integer numbers. Use two text fields for input and third text field for output. Your program should display sum if the user presses the mouse and difference if the user releases the mouse. 10. What is bean design pattern? Explain simple, Boolean, and indexed property design patterns with suitable examples in detail. 11. Define RMI. What is stub and parameter marshalling? Write a client/server application using RMI to find product of two numbers. Don’t Forget to Follow Uni Bytes

Related document

x
Report download errors
Report content



Download file quality is faulty:
Full name:
Email:
Comment
If you encounter an error, problem, .. or have any questions during the download process, please leave a comment below. Thank you.