The Sealed class has been previewed for two released versions, Java 15 and Java16, and it is finalized in Java 17. Here we are going to have a look at this new feature.

What is the Sealed Class

A sealed class or interface can be extended or implemented only by those classes and interfaces permitted…

Nowadays, the MVVM architecture has been accepted widely as a standard on the development of mobile platforms for years(meanwhile, some people are trying to explore the possibility of MVI and we may discuss it in my next post). On the Android side, the LiveData is a really important class in…

As Java developers, we probably need to work together with our old friend, Exception, in our daily life. However, we might know this old friend for years but, sometimes, he would like to stay mysterious. Like, “where did he come from?”, “Does he has siblings?”, and “which one should I…

It has been years since Java 8 was released. No doubt it is a milestone for Java. One of the most attractive features is Lambda Expressions being introduced, which means Java brings developers more possibilities by embracing the functional programming paradigm. …

Jeff Li

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store