whats is the use of final,in which situation final can be
used in the application?

Answers were Sorted based on User's Feedback



whats is the use of final,in which situation final can be used in the application?..

Answer / muralisankar

you can prevent a class from inheritance.
You can prevent a method from overriding.

Is This Answer Correct ?    3 Yes 0 No

whats is the use of final,in which situation final can be used in the application?..

Answer / cool_duzz

Constants.. that are not supposed to be changed ever.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is vector?

0 Answers  


suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible

6 Answers   HP, Wipro,


What’s the difference between constructors and other methods?

0 Answers  


How does varargs work in java?

0 Answers  


How do you sing an Applet ?

0 Answers  






Does substring create a new object?

0 Answers  


Difference between Linked list and Queue?

0 Answers   Virtusa,


Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target

7 Answers   Infosys, WW,


How is rounding performed under integer division?

2 Answers   Satyam,


what is deadlock? : Java thread

0 Answers  


What is difference between next () and nextline () in java?

0 Answers  


What is the base class of all exception classes?

0 Answers  


Categories