Motto: More stuff is coming...
Q1: Enumerate all advantages of immutable classes compared with mutable ones.
Q2: What’s printed to console when main method is called?
public static void main(String[] args) {
Pattern myPattern = Pattern.compile("Dummy");
System.out.println(myPattern.matcher("This is a dummy text").matches());
}
Can you please change method implementation for printing true, instead of false?