How do you use final keywords and final variables in Java?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is stringbuffer stored?

742


Difference between method overloading and overriding.

768


what is use of functional interface in java 8?

773


Differentiate between array list and vector in java.

853


What is the use of using enum to declare a constant?

771


Can It is possible to synchronize the constructor of a Java Class?

795


Explain the difference between static and dynamic binding in java?

789


What does opcode mean?

767


why doesn't java run on all platforms?

765


What are methods in java?

725


How can we create objects if we make the constructor private ?

737


What is import java util arraylist?

862


What are the differences between wait() and sleep()?

730


Can a static method be final?

751


java Technical questions asked by JPMC

4781