I have two final
variables declared at class level but they are not initialized.
So, now when I try to create default constructor for that class, it is giving an error saying
The blank final field may not have been initialized
.
Why this error occurs? Why need to initialize final variables in constructor?
I have another query also that is, is it not possible to create an instance without a default constructor? Even if we have parameterized constructor?