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

Advance Java Programming Exam 2020

This document is a past exam paper for an Advance Java Programming elective course taken at Pokhara University during the Spring 2020 semester. It consists of 6 questions worth a total of 70 marks and requires candidates to answer all questions in their own words while providing relevant Java code. The questions cover topics like graphics and multimedia in user interfaces, internationalization, Java Enterprise Edition architecture, building a course registration module with login/logout functionality, developing a mobile content delivery system, choosing an appropriate database, and creating a student registration module with Spring Boot and Hibernate.

Uploaded by

Khursaid Ansari
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)
25 views2 pages

Advance Java Programming Exam 2020

This document is a past exam paper for an Advance Java Programming elective course taken at Pokhara University during the Spring 2020 semester. It consists of 6 questions worth a total of 70 marks and requires candidates to answer all questions in their own words while providing relevant Java code. The questions cover topics like graphics and multimedia in user interfaces, internationalization, Java Enterprise Edition architecture, building a course registration module with login/logout functionality, developing a mobile content delivery system, choosing an appropriate database, and creating a student registration module with Spring Boot and Hibernate.

Uploaded by

Khursaid Ansari
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

POKHARA UNIVERSITY

Semester: Spring
Level: Bachelor Year: 2020
Programme: BE Computer Full Marks: 70
Course: Advance Java Programming (Elective I) Time: 2hrs

Candidates are required to give their answers in their own words as far
as practicable.
The figures in the margin indicate full marks.

Attempt all questions.


1. How graphics and multimedia plays vital role in UI/UX and
user engagement to operate a well design software system.
Also wrote down the code to load multimedia content in java.

OR
10
Analyze the different factors that a software can competes in
the international market. Write down the code to support
different Language, currency, and date time.

2. If you are selected as JavaEE developer. How do you develop


an architecture of your large project and also write how do
you choose the different types of bean for good 10
implementation of project?

3. Pokhara University is planning to develop an online course


registration module using JSP/Servlet. You as a programmer
write down the code to register the course by the logged in
user and display own registered courses. Assume login and
10
student details module is already developed. The registration
module must be protected from unauthorized access and also
logged in user can have facility to logout.

4. You are supposed to develop a NTC CRBT distributed system


where mobile user sends 11digit code to NTC Server. The
10
Server will fetch the 11digit code on its database. If it will
found on the database returns the name + price of the video
otherwise sorry no video available. For this write down the
complete concept code.

5. As a database expert suggest which database have to choose


for next big java project among normal database and
hibernate database. Also differentiate the Normal Database 10
and Hibernate Database.

6. Pokhara University has given you a role of Spring


Boot/Hibernate programmer to Develop a student registration
module having name, email, mobile, program, and semester.
20
You also develop a page to list all the students information
stored in a MySQL database.

Common questions

Powered by AI

Graphics and multimedia play a crucial role in enhancing UI/UX by making interfaces more intuitive, engaging, and visually appealing. They help users interact with the software in a more meaningful way, leading to increased retention and satisfaction. To load multimedia content in Java, you can use Java Media Framework or libraries like JavaFX, which provide APIs to handle audio, video, and images efficiently .

To implement this module, secure user authentication must be ensured. JSPs can handle the presentation layer, displaying registration forms to logged-in users. Servlets would manage business logic, verify user credentials from the session, process the course registration, and update the backend. Ensuring access control with role-based authentication helps prevent unauthorized access .

Implementing SSL for encrypted data transmission, role-based authentication, and regular security audits ensures data protection. User-friendliness can be maintained by using intuitive login interfaces and providing feedback on authentication status. Protection against CSRF and SQL injection through input validation is also crucial .

Developing a JavaEE architecture involves choosing stateless beans for tasks that do not need to maintain client state and stateful beans for processes that require session persistence. Message-driven beans are used for handling asynchronous processing. The selection depends on the specific requirements of each module, ensuring scalability and maintainability .

To compete in the international market, a software system must consider factors such as localization (support for different languages), adaptability to various cultural contexts, compliance with international standards, flexible currency conversion, and dynamic time zone handling. Writing code to support multiple languages, currencies, and date/time formats is crucial for broad market appeal .

A Spring Boot application for student registration would include layers for controllers, services, repositories, and models. Using Hibernate for ORM, entities are mapped to a MySQL database. RestController can handle HTTP requests, and services contain business logic. Repositories interface with the database, enabling CRUD operations, while controllers connect user actions to these services .

Success can be measured through customer feedback, market share growth, localization effectiveness, and ROI. Post-launch assessment allows for understanding user satisfaction, identifying areas for improvement, and adapting further marketing strategies to enhance international presence. Continuous monitoring ensures long-term competitiveness .

The system would handle client requests via HTTP, capturing the 11-digit code entered by the user. The server would then query the database for the code, returning the corresponding media name and price if found. This requires a robust server-side logic to handle high-volume requests efficiently, possibly using RESTful web services for scalability and performance .

Choosing the correct architecture ensures scalability, maintainability, and performance. Common patterns in JavaEE include MVC (Model-View-Controller) for organizing code logically into layers, and EJB patterns like Session Facade for encapsulating business logic. Each pattern serves specific project needs, influencing ease of integration and modular development .

Traditional databases involve direct SQL queries, whereas Hibernate abstracts the database interactions through ORM, which can lead to faster development times and easier maintenance. Hibernate manages relations using XML files or annotations, offering automatic database transaction handling. Traditional databases might be preferred when fine-grained control over SQL is necessary .

You might also like