answersLogoWhite

0

They are inversely related. That is:

If you declare a method as final you cannot overridden in the child class

If you declare a class as final you cannot inherit it in any other class.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Is it possible to implement overriding in every inheritance?

Yes. It is possible to implement overriding in every inheritance level. If there are methods of the same name in multiple classes in the hierarchy the one that is closest to the current object gets invoked. The other methods can be specifically invoked using the super keyword.


Difference between super and this in java?

The keyword super is used to explicitly call methods/values from the parent class The keyword this is used to explicitly call methods/values from the current class


What is a new keyword in java methods?

new is a keyword to create a instance of object any class.


Where does inheritance take place?

Inheritance, in the context of object-oriented programming, takes place between classes where one class (called the sub-class or child class) inherits attributes and methods from another class (called the super-class or parent class). This allows for code reusability and the establishment of a hierarchical relationship between classes.


What are the most effective research methods topics for conducting keyword research?

The most effective research methods for conducting keyword research include using keyword research tools, analyzing competitor keywords, studying search trends, and conducting surveys or interviews with target audiences.


What are the synchronized methods and synchronized statements in java?

Synchronized Methods are methods that have the keyword synchronized in the method signature. Synchronized statements are pieces of java code that are surrounded by brackets which have the keyword synchronized qualifying them. Both cases mean that - only one thread will be able to access the method or the statement that is synchronized


What is the relationship of policies to strategies?

The relationship between policies and strategies is strong. Policies are the ideas and rules while strategies are methods to execute them.


What is the difference between class inheritance and interface inheritance?

interface inheritance is a misleading term. Interface inheritance would be equivalent to the union of the method signatures of interfaces ( no typo here, an interface may implment multiple other interfaces) Class inheritance - single hierarchy (in C#), and not only the methods are inherited, but also the data members. (interface in C# cannot define data members)


What is foreign keyword in java?

There is no "foreign" keyword in Java, however, there is a native keyword that declares native methods in a native language, such as C or C++.For full list of keywords in Java see related question.


What do you mean by this keyword in java?

"this" is a Java keyword that references the current object. Any part of the object(instance variables, methods, constructors) can be accessed by calling this.[member].


Is sizeof keyword in Java?

sizeof is not a keyword in Java but many classes have size() or length() methods, which can mean the number of elements, characters, etc. depending on the class.


What are some research methods and topics ideas for conducting keyword research effectively?

Some research methods for conducting keyword research effectively include using keyword research tools, analyzing competitor keywords, and conducting surveys or interviews. Topics ideas for keyword research could include identifying popular search terms in your industry, understanding user intent behind keywords, and optimizing keywords for voice search.