Scala’s pattern matching, implicit conversion, companion classes of companion objects, functional expressions, etc .. It is still very difficult to fully understand the characteristics
Is there a great god who can simply analyze and compare java and scala under jvm?
Personally, I think that if you put,
JavaSyntactic sugar is the least high-level language, and I sum it up as
JavaThis kind of cleanness makes it easy for beginners to master it.
Java, also let
JavaIt has maintained its long-term vitality. Because of the lack of Syntactic sugar, so
JavaThe program often looks very clear, understanding does not need too much brain, but this has both advantages and disadvantages, the disadvantage is that sometimes excellent Syntactic sugar can accelerate the development speed and greatly reduce the amount of code.