What is meant by final class, methods and variables?
Answer Posted / narasimha
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 |
Post New Answer View All Answers
Can we define package statement after import statement in java?
Can we have two methods in a class with the same name?
How do you stop a thread in java?
What does java ide mean?
What are the difference between string, string builder, and string buffer in java?
Can I declare a class as private?
What is the purpose of finalization in java programming?
What is the functionality of the stub?
What is charat java?
How many types of methods are there in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What are different exception types exceptions available in java ?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
How static variable work in java?
What is the difference between the boolean & operator and the && operator in java programming?