Congrats Lalaka
This is a very inspiring achievement. Keep up the great work!
Great Score! Congratulations!
Thats really great and inspiring.
Happy to see the results of your hard work and efforts!
Cool dude.. Congrulations
Well done, congratulations!
Congratulations Lalaka.
Nice to hear such achievement from Sri Lanka, and glad knowing that ExamLab helped.
I suspect it takes a few days for the data to be updated, so if I were you I'd go and have a beer and relax for a couple of days then go and check it
I just checked mine and it took 2 days for the result to be available in cert manager so your candidate id probably doesn't exist until it has been added by the people at Oracle.
will myers wrote:silly question but have you gone through the registration process at CertManager? Click on the first time users link and follow the instructions
Abimaran Kugathasan wrote:Congrats!
Anish Kurian Thomas wrote:Wow great score.... Congrats.... Keep it up
![]()
![]()
Hareendra Reddy wrote:Hello Lalaka Jeerasinghe ,
Thank you for the post, it is very informative..
But i am still unable to convince, why the code doesnot compile even if final variable b is initialized
before it is used in switch .
Anyway if we are using a method variable which is uninitialized the compiler error appears,
but the error here is different...
Can you please elaborate this statement "Simple names that refer to final variables whose initializers are constant expressions "
Final Variables
Declaring a variable with the final keyword makes it impossible to reinitialize that variable once it has been initialized with an explicit value (notice we said explicit rather than default). For primitives, this means that once the variable is assigned a value, the value can't be altered. For example, if you assign 10 to the int variable x, then x is going to stay 10, forever.
Final Variables
Declaring a variable with the final keyword makes it impossible to reinitialize that variable once it has been initialized with an explicit value (notice we said explicit rather than default). For primitives, this means that once the variable is assigned a value, the value can't be altered. For example, if you assign 10 to the int variable x, then x is going to stay 10, forever.
A compile-time constant expression is an expression denoting a value of primitive type or a String that is composed using only the following:
Literals of primitive type and literals of type String
Casts to primitive types and casts to type String
The unary operators +, -, ~, and ! (but not ++ or --)
The multiplicative operators *, /, and %
The additive operators + and -
The shift operators <<, >>, and >>>
The relational operators <, <=, >, and >= (but not instanceof)
The equality operators == and !=
The bitwise and logical operators &, ^, and |
The conditional-and operator && and the conditional-or operator ||
The ternary conditional operator ? :
Simple names that refer to final variables whose initializers are constant expressions
Qualified names of the form TypeName . Identifier that refer to final variables whose initializers are constant expressions