Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Java static method
1 Answer(s)      4 years and a month ago
Posted in : Java Interview Questions


Can we override static methods?

Advertisement
View Answers

October 29, 2010 at 6:03 PM


Hi,

We can not override final method by definition but we can override static method.

Because static method binding is done at compile time not at run time but static variable binding is done at run time not at compile time. That is the reason that static method are not participated in overriding process.

Thanks.



Related Tutorials/Questions & Answers:
Static Method in Java
Static Method in Java  Is Overriding Static methods possible in java? If Yes, How
Java static method
Java static method  Can we override static methods
Advertisements
Static method in java - Java Beginners
Static method in java  What are static method in Java  Hi Friend, Please visit the following link: http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml Hope that it will be helpful for you
Static Method in java with realtime Example
Static Method in java with realtime Example  could you please make me clear with Static Method in java with real-time Example
Static method
Static method  what is a static method?   Have a look at the following link: Java Static Method
can we inherit static method in java?
can we inherit static method in java?  can we inherit static method in java
Java static method example
Description: Static variable are used within the static method. Non static variable do not exits in the static method. Static variables are shared by its class instances. Static variable can be used without using the instances
static method
static method  Give some absolute examples and definition for static method also
Accessing non-static members through the main method in Java.
Accessing non-static members through the main method in Java.  As an oop rule, a static method can have access only to static variables and static... in Java has access to non-static members (variables or methods) even though
JAVA what is different between static block and public static void main(String a[]) method
JAVA what is different between static block and public static void main(String... void main(String a[]) method,we execute method without main method(by static...() method for various reasons, it coexists with main() method which is static too
how to call static method
how to call static method  class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C
how to call static method
how to call static method  class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C
how to call static method
how to call static method  class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C
how to call static method
how to call static method  class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C
how to call static method
how to call static method  class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C
how to call static method
how to call static method  class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C
Static Method in PHP - PHP
Static Method in PHP  So far I can easily use the normal functions as variable in PHP? but how can use static method?  Hi Friend, Please...-static-variable-method.html Thanks
Why is the main method declared static?
the static method. For more visit http://www.roseindia.net/java/beginners...Why is the main method declared static?  Hi, Why is the main method declared static? thanks   Hi, When we declare main() method in any
Example of static method
Example of static method       This Java programming example will teach you the way to define a static methods. In java we have two types of methods, instance methods and static
When will you define a method as static?
When will you define a method as static?  Hi, When will you define a method as static? thanks
static in java
static in java  what is the need to go static? what use
static keyword in java
function in java program. In static method we call other static methods only... .style1 { color: #0000FF; } static keyword in java We are going to discuss about static keyword in java. The static keyword is a special
What are the restriction imposed on a static method or a static block of code?
What are the restriction imposed on a static method or a static block of code?  hi, What are the restriction imposed on a static method or a static block of code? Thanks
Static variable in java
Static variable in java. Static is a keyword in java used to create static methods, variable inside a class and static class. Static variable is also called class variable which belongs to class not to object. Static
Can we declare a static variable inside a method?
Can we declare a static variable inside a method?   Hi, Can we declare a static variable inside a method? thanks
class static - Java Beginners
a static method this way"); } public void nonStaticMethod(){ i=100; j=1000; System.out.println("Don't try to access a non static method... information on Static in Java visit to : http://www.roseindia.net/java/beginners
Java static import
Java static import  What is the use of static import
Static & Instance variables in java
Static & Instance variables in java  What are the Difference between Static & Instance variables in java
PHP set static Method
_set_static()Method in PHP : In this tutorial we will study how to assign...() method. We need to declare a magic method called __set_static() which... return the object. PHP Set Static Method Example: <?php class A { public
core java, static - Java Beginners
core java, static  Dear sir, in java non-static fields can... ( Ultimately this is what we do in static main method). So is right to say...("You can call me within static method with the help of class object
static
static  what r the main uses of static in java   Hi Friend, The Static means that a certain object/variable is resident in memory... the following link: http://www.roseindia.net/help/java/s/static-java-keyword.shtml
Advertisements
 

 

 

DMCA.com