Java Musings – initializing a final variable with an uninitialized final variable
Java has fewer quirks compared to C++, but sometimes I do come across surprises. A code like following will fail to compile since you are trying to initialize a variable with an uninitialized variable. public class Sample { private final […]