I took C # again, returned after a long work in Java, and, as you can expect, I was very interested in properties (the burden of Java), so I started to study them a bit and came up with this.
private static float Width { get { return 0.012f; } }
After messing around a bit, I realized that this works too (lambda expression?).
private static float Width => 0.012f;
Now, please help one Java developer understand here what exactly is the difference? What the former can do, what the latter cannot and vice versa.
source share