In Inheritence concept, i have a static method in super
class and i am inheriting that class to one sub class.in
that case the static method is inherited to sub class or
not????
Answer Posted / venkat
In java supporting for the static overriding concept but
the values are static values(means entire application values
will come one type).
ex:
class A
{
public static void test()
{
}
}
class B extends A
{
public static void test()
{
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Does java arraylist maintain insertion order?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What is a pointer and does java support pointers?
what is bmg file and how to create that files?what will it contailn?
What lambda means?
What do you mean by pointer value and address?
What are the different conditional statements?
Is oracle charging for java?
What is final class?
what is collatration?
Why can we not override static method?
Is java util regex pattern thread safe?
What does serializing data mean?
Can constructor be inherited?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator