SAP_CAPintermediate
CAP Java service runtime
Separate Java SDK conventions from Node.js examples
Overview
Separate Java SDK conventions from Node.js examples
Lessons in this topic
- CAP Java service runtime — SAP Guided TutorialHow the CAP Java stack works on Spring Boot: generated POJO interfaces from CDS, event handler classes with @Before/@On/@After, the persistence service, and how errors and transactions behave compared with Node.js.
Interview questions covered
- Compare CAP Node.js and CAP Java. How would you choose for a project?
- How do you implement and test an action in CAP Java?
How to study CAP Java service runtime
CAP Java service runtime has 1 lesson (1 intermediate) with about 5 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 2 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 4 mock questions to check recall.
Mock test questions covered
Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.
- In CAP Java, what generates the Books and Books_ interfaces?
- How do you reject an invalid request in a CAP Java @Before handler?
- Why should CAP Java code avoid raw JDBC for normal queries?
- Which annotation registers a handler that implements a custom action in CAP Java?