PA165 Enterprise Java - Lectures
Course Information
Course Evaluation
The course is evaluated based on the performance of the students on two parts:
- (1) Project developed in groups (55 points)
- (2) Final Exam (35 points)
- (3) Points during seminar completed tasks (10 points)
Instructions for the project evaluation (1) are available in the interactive syllabus of the seminars, here.
The Final Exam is composed by multiple-choice closed questions about the content of the course (both lectures and seminars).
- depending on the indications in the questions, one or more options can be the right choice;
- marking a wrong answer in one question brings to 0 points awarded for the answer. However, some questions that are more difficult (indicated in the text) can still award points in case of missing answer. Every student gets the same number of such questions;
- the exam includes randomly selected questions, however, the distribution of questions per topic is the same for every student;
- there are no bonuses for the written exam;
Sample Questions
The following are some sample questions from the exam of last year (answers marked with (**) are correct):Q1. What does a commit object contain?
-
a set of files, representing the state of a project at a given point of time (**)
-
an SHAI name, a 40 character string that uniquely identifies the commit object (**)
-
a file named .git, where git keeps all of its metadata
-
None of the mentioned options
Q2. What does "refactoring" mean?
- Changing the code after requirements change
- Changing the code structure without changing functionality (**)
- Changing the code to improve performance
- Introducing the Factory design pattern into your code
Q3. What is the default Fetch type for a field annotated with @ManyToOne
-
LAZY
-
EAGER (**)
-
There is no default, a developer must set this
-
Depends on the Database Engine
Q4. When implementing a REST controller in Spring MVC, what is the difference between the @Controller and the @RestController annotation?
-
They are the same, just using @RestController can improve code readability
-
It is only a marker annotation that will be used to determine REST controllers when using @EnableWebMvc
-
Using @RestController is equivalent to using a @Controller with @ResponseBody (**)
-
Using @RestController is equivalent to using a @Controller with @ResponseBody and @RequestBody