Medium
Let's consider
public class Firstname {
private final String firstname;
public Firstname(String firstname) {
this.firstname = firstname;
}
public String firstname() {
return firstname;
}
}
public record Firstname(String firstname) {
}
These structures
Author: Clément DevosStatus: PublishedQuestion passed 452 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
What is the output of the following code?
```java
try {
return 42;
} finally {
return 1337;
}
```1
What does SRP stand for?1
Java code that replaces keys in a template with their values.4
This code allows to randomly get numbers between 1 to 31 in results. Should have declard SimpleDateFormat in the Thread.1
Which Java 7 feature was only usable in Java 8?1
Write a Java code that returns the integer 515
Write a function that returns the first character of a string in Java