can you create interface instance ?
Answer Posted / arvind panwar
No, we can't create an instance of an interface but
reference variable can hold reference to object of its sub
class.
| Is This Answer Correct ? | 46 Yes | 13 No |
Post New Answer View All Answers
How to perform bubble sort in java?
What is the largest data type in java?
Differentiate between run time error and syntax error.
why Java does not support multiple inheritances?
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
Why is java logo a cup of coffee?
how would you implement a thread pool? : Java thread
What is the difference between stream and buffer?
How can you read an integer value from the keyword when the application is runtime in java? example?
Why are global variables used?
Differentiate between stringbuffer and stringbuilder in java.
What do you understand by the term singleton?
What is args length in java?
What is the benefit of singleton pattern?
What is passing by reference in java?