The past few shorts we've been going over "easy ways" to create new Collections (Lists, Sets, Maps) by using their respective .of()... However, there is a caveat to this, where the collection generated by using the of() is immutable. Meaning once it's generated, you cannot modify it. The only way you would be able to is by copying the collection onto a mutable collection which is not very clean either. So, if you need to generate a list, but don't plan on modifying it's contents the .of() method will be really good for you, but if you plan on modifying them, then the .of() might not be the best...
#shorts