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 220 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Java
2
This code allows to randomly get numbers between 1 to 31 in results. Should have declard SimpleDateFormat in the Thread.1
A code kata is a small exercice thought to train a certain development competence0
Write a function that returns the first character of a string in Java0
Which of these lines compile and would return true?0
Immutability mainly allows to avoid side effects and to have thread-safe behaviours.