what is the difference between static block and static
method
Answer Posted / sukhvider
static block executes whenever the class loaded in the Java virtual machine that means object is before going to main Method.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is variable explain with example?
What is the use of jtable?
In which language java is written?
What is a method in programming?
What is thread safe java?
What is the difference between the paint() and repaint() methods in java programming?
What is meant by oops concept in java?
what is difference betweem home interface and remote interface?
Why are functions called methods in java?
If two threads have same priority which thread will be executed first ?
What is thread start?
What are the main uses of this keyword?
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
Can you call a method on a null object?
What is the final class modifier?