How do you use final keywords and final variables in Java?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
Java programmers are unable to alter the value of variables of basic data types when they use final keywords with them.
When final is used with non-primitive variables, the members of the referred object cannot be altered.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
Java programmers are unable to alter the value of variables of basic data types when they use final keywords with them.
When final is used with non-primitive variables, the members of the referred object cannot be altered
| Is This Answer Correct ? | 0 Yes | 0 No |
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
Can set contain duplicates?
Is java se open source?
What is static keyword in java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is meant by wrapper classes?
What is the use of a copy constructor?
Describe OOP in java?
explain about casting of objects?
Can we inherit a class with private constructor?
What is the functionality of the stub?
Can you have a constructor in abstract class?