when we have to use final class in java?
Answers were Sorted based on User's Feedback
Answer / rana
A class is said to be final when i dnt want my class to be
extended by any class so that methods implementation cannot
be changed.
For ex String is a final class
| Is This Answer Correct ? | 31 Yes | 3 No |
What is OOP Language?
What is port number in java?
Why only one Class is public in one file? Explain in details. Thanks in Advance.
What is meant by controls and types?
What are advantages of exception handling in java?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
How many bits is a boolean?
abstract class Demo { public void show() { System.out.println("Hello I am In show method of Abstract class"); } } class Sample extends Demo { public void show() { super.show(); System.out.println("Hello I am In Sample "); } } public class Test { public static void main(String[] args) { //I WANT TO CALL THE METHOD OF BASE CLASS IT IS POSSIBLE OR NOT CAN WE USE SCOPE RESOLUTION OPERATOR TO CALL OR JAVA NOT SUPPORTED THAT :: OPERATORE } }
How does marker interface provides functionality to the implemented class ? or How dose maker interface gets the functionalities as serialization or cloning.
Difference between Application and Applet ?
What is serialVersionUID and what is its need?
Explain the use of volatile field modifier?