What are constants and how to create constants in java?
Answer / Sumeet Bhandari
Constants are values that cannot be changed during the execution of a program. In Java, they are declared using the final keyword followed by the variable name. For example: final int PI = 3.14; The value of PI can now only be used and not changed.
| Is This Answer Correct ? | 0 Yes | 0 No |
how to make the double-tone class ? as we have singletone class..?
What are constructors in java?
What is the static keyword?
Explain all java features with real time examples
What is sortedmap interface?
What enableEvents() method do?
what Data encapsulation in java?
Can we create a constructor in abstract class?
Explain the overview of UDP messaging.
what is difference between abstraction and interface?
Write the algorithm to check the number non-leaf nodes in a tree.
What is a qms manual?