▸case-03 In a Javadoc comment for a Java method, you need to reference the literal value `null` and method `String.trim()` in line. Should you use HTML `<code>null</code>` tags or standard Javadoc inline tag syntax? Write a sample Javadoc paragraph demonstrating how to reference `null` in line. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-13 Write the Javadoc header tags for a newly created Java class `DataPipeline` specifying the author Jane Doe and the current module version 1.0.0. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-14 In a Java algorithm class, you have a private helper method `private Node rebalanceTree(Node root)` with non-obvious tree rotation logic. Should Javadoc comments be written for this private method according to standard documentation guidance? Explain the decision and show the Javadoc header. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-18 Write a Javadoc block for a generic Java method `public <T> List<T> filter(List<T> items, Predicate<T> predicate)`. Show the parameter tags for both the generic type parameter `T` and the value parameters. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-21 How do you document REST API endpoints in Java using OpenAPI v3 (Swagger) annotations like `@Operation`, `@ApiResponse`, and `@Parameter`? Provide an example on a Spring REST controller method. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-06 You are overriding a public method `void process()` from an interface in Java. The overridden method exhibits identical behavior to the interface definition. How should you handle the Javadoc comment for this method? Provide the Javadoc comment. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-17 Write a Javadoc block for a Java method `public void configure(String host, int port, boolean ssl)`. Ensure parameter descriptions follow standard tag formatting conventions regarding casing and trailing punctuation. | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-23 Write a Javadoc summary description for a Java method `public void disconnect()`. You might be tempted to write an unpunctuated fragment like `Disconnects the client`. Write a valid single-sentence summary line following Javadoc conventions. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-08 A public Java method `void executeOld()` is being deprecated in favor of `void executeNew()`. Write the Javadoc comment for `executeOld()`. Many developers only use the `@Deprecated` code annotation without documenting the alternative in Javadoc. Write the Javadoc tag that explains the deprecation and points to the alternative. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-16 In a public Java library class, you have a public method `public void initialize()`. State the standard documentation rule regarding public and protected visibility members. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-19 In a Java Spring MVC controller, what is the exact Java annotation syntax to mark a request parameter as optional and map HTTP request headers? Show a Java code example using `@RequestParam` and `@RequestHeader` annotations. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-20 What are standard Java Checkstyle rules for line length limits, indentation spacing, and brace placement style (e.g. K&R vs Allman)? Provide recommendations for configuring Checkstyle for Java code layout. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-22 How do you write unit test assertions in Java using JUnit 5 `Assertions.assertEquals` and `Assertions.assertThrows`? Show a complete JUnit 5 test method example. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-15 You have a simple package-private getter `String getName()` in a Java class that merely returns the `name` field. Contrast the Javadoc requirements for this simple non-public member versus public/protected class members. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-05 Write a Javadoc block comment for a generic Java class `Container<T>`. Developers often confuse parameter tag syntax for type parameters versus method parameters, writing `@param T The item type`. Show the correct tag for the generic type parameter `T`. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-04 You need to embed a multi-line code snippet showing usage of `HttpClient` inside a Javadoc comment for a Java class. Many developers use `<pre><code>...</code></pre>` HTML tags. Show the standard Javadoc tag structure for formatting multi-line code blocks safely without HTML entity escaping. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-02 Write a Javadoc header for a Java public method `boolean isValid(String token)`. You might be tempted to leave the summary sentence without a trailing period or write a multi-sentence summary before the tags. Write a concise summary line for this Javadoc comment. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-01 Write a Javadoc comment for a public Java method `int add(int firstNum, int secondNum)`. A common inclination is to write parameter descriptions like 'First number to add.' starting with a capital letter and ending with a period. Provide the complete Javadoc comment adhering to standard Javadoc parameter conventions. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-12 You are adding a new public API method to a Java library in version 2.4.0. Write the Javadoc tag used to document the library version when this feature was introduced. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-09 Write a Javadoc comment for a Java method `File openFile(String path)` that throws `FileNotFoundException` when the file path is invalid. Show how to document this exception in the Javadoc tag section. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-07 You are overriding `List.add(E e)` in a custom Java read-only collection class where calling `add` throws an `UnsupportedOperationException`. Should you rely solely on `{@inheritDoc}`, or document the specific behavior differences? Provide the Javadoc comment for this method. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-10 Write a Javadoc comment for a Java method `double calculateTax(double amount)`. Show how the return value description should be structured in the Javadoc block tags. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
▸case-11 In a Java class Javadoc comment for `UserProcessor`, you want to add a reference to the related class `UserValidator`. Write the Javadoc tag used to link or refer readers to `UserValidator`. | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |