What is meant by final class, methods and variables?
Answers were Sorted based on User's Feedback
when you declare a class as final, that class cannot be
extended.In java "String" class is final.
when you declare the variable as final then we can
intialize it only once.it is constant.
when declare the method as final we cannot override the
method
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
final class:Is the one which cann't be subclassed
final method:Is the one which cann't be overrided
final variable:is the one which acts like a constant
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / suresh chand
final class: we can't inherit that class
final method: we can't override that method
final variable: we can't change the value of that var.
| Is This Answer Correct ? | 9 Yes | 0 No |
What is the difference between preemptive scheduling and time slicing?
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
Can we make constructors static?
Can u write constructor in abstract.If yes den when it will be invoked.
What is meant by class loader? How many types are there?
What are uses of Hash Code?
Difference between concurrent hashmap and hashtable and collections
Why does java does not support multiple inheritance? Explain
Does chrome use java?
What are the main concepts of oops in java?
What do you mean by stream pipelining in java 8?
use of wrapper classes?