0% found this document useful (0 votes)
37 views2 pages

Advanced Java Lab Syllabus for BCA

bcaaaa

Uploaded by

xiyatix538
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Advanced Java Lab Syllabus for BCA

bcaaaa

Uploaded by

xiyatix538
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JYOTI NIVAS COLLEGE AUTONOMOUS

SYLLABUS FOR 2018 BATCH AND THEREAFTER


Programme: B.C.A Semester: V
ADVANCED JAVA PROGRAMMING – LAB
Course Code:18BCAVP1 No. of Hours: 60
COURSE OBJECTIVES:
 Learn to create the graphical user interface oriented applications using platform independent
and light weight components such as swings.
 Understand the architecture of Remote Method Invocation (RMI) and Common Object
Request Broker Architecture (CORBA)
 Understand how the database programming concepts are implemented in java using JDBC.

LEARNING OUTCOMES:
 Knowledge about the database programming will add an advantage in developing an efficient
and secure application.
 Knowledge about the java server pages and servlets will help in developing web based
applications.
 Understanding of how the creation and usage of jar files work will be an added an advantage
in creating java based software.

PART –A

1. Implement the functionality of checkboxes using Swing. On selecting a checkbox the


corresponding text should be displayed in a TextField.
2. Implement a ComboBox and a Label. The ComboBox should contain names of countries and
the label should display the corresponding flags on making a selection from the ComboBox.
3. Implement Tabbed Panes using Swing.
4. Implement a simple JSP showing increased font size.
5. Implement a Servlet to generate Multiplication Table for a Number Entered in Html Page.
6. Write a program which displays hostname and IP address of a host.
7. Write a program to create a URL and display its properties like protocol, port number, domain
and file path.
8. Write a program to demonstrate the use of <jsp:forward> Action Tag.

PART – B

9. Implement Echo Server and client program that displays whatever is typed in the server on
to the client using sockets.
10. Implement the concept of Cookies by registering a new user and displaying the number of
visits made by the user .
11. Implement Login Form Validation using JavaBeans.
12. Implement jdbc connectivity to insert records and delete records into a table.
13. Implement jdbc connectivity to to demonstrate PreparedStatement.
14. Implement jdbc connectivity to demonstrate first( ), next( ), previous( ), relative(int row),
absolute(int row).
15. Implement a simple client/server Application using RMI.
16. Write a program to create a jar file.

Common questions

Powered by AI

Servlets offer significant performance advantages over traditional CGI scripts by allowing persistent processing through their life cycle. They can handle multiple requests within the same process without spawning new processes for each request, reducing overhead. Additionally, servlets support modern web protocols better, have built-in session management capabilities, and provide ease of use through Java's platform independence and robustness .

Swing components differ from AWT in that they are lightweight and written entirely in Java, leading to greater platform independence because they don't rely on native system resources. Unlike AWT, which relies on platform-specific components and is heavier, Swing components provide a more consistent look and feel across different environments and offer more robust features for building GUI applications .

Implementing RMI in Java-based distributed applications can be challenging due to complexities in network configuration and security issues, such as dealing with potential attacks on open ports. However, the benefits include streamlining the communication process between distributed objects, promoting code reuse, and simplifying server-client communication using Java's native object serialization mechanisms .

Implementing JDBC connections to insert and delete records is advantageous in applications like e-commerce platforms for managing users and products, content management systems for updating content entries, and forums for handling posts. These operations ensure data consistency and enable real-time data manipulation, enhancing user interactions and operational workflows .

JavaBeans can be utilized to validate login forms in web applications by encapsulating the validation logic within reusable and encapsulated components. They allow developers to handle input data consistently, perform server-side checks against criteria such as match against stored credentials, and integrate smoothly with JSPs, which ensures secure and correct authentication processes .

Understanding database programming in Java using JDBC could lead to higher security through prepared statements, reducing the risk of SQL injection. Efficiency is improved as developers can optimize database interactions, handle transactions, and execute complex queries efficiently, resulting in faster and more reliable applications .

Echo server-client communications can be implemented in Java using sockets by creating a server socket to listen for client connections and handle input/output streams for data exchange. This simulates a messaging service where the client's messages are echoed back by the server. Real-world applications include chat systems, network testing utilities, and educational tools for understanding networking basics .

Implementing session tracking using cookies is essential in web applications to maintain user state across multiple requests. This helps in personalizing user experiences, remembering user preferences, managing user authentication sessions, and tracking user activity for analytics. Without cookies, each HTTP request would be treated as independent, losing context and continuity .

Jar files simplify Java software development by bundling related classes, images, and other resources into a single file, which ensures better distribution and management of applications. They save bandwidth and allow the programmer to package code libraries for easy reuse and maintenance .

Java Server Pages (JSP) enhance web application development by allowing dynamic content creation, unlike static HTML. JSP supports embedding Java code in web pages, enabling real-time interaction with databases, and thus provides personalized and interactive user experiences, which static HTML cannot offer .

You might also like