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

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More Core Java Interview Questions

Can substring create new object?

0 Answers  


What is a classloader in java?

0 Answers  


Can we use static class instead of singleton?

0 Answers  


What is the synonym of string?

0 Answers  


What is import java util arraylist?

0 Answers  


How does multithreading take place on a computer with a single cpu?

0 Answers  


What is the difference between abstract classes and interfaces?

0 Answers  


how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?

1 Answers   Satyam,


what is the main difference between string and stringbuffer? can you explain it with program?

2 Answers  


justify c is portable

1 Answers  


How do you start a new line in java?

0 Answers  


To the class members how can we provide security?

1 Answers   Aspire,


Categories