Can you instantiate the math class in Java?
No Answer is Posted For this Question
Be the First to Post Answer
how to one war file class to another war file class?
Can we declare the static variables and methods in an abstract class?
What Is Composition?
Can a class be private or protected in java?
How do you find the maximum number from an array without comparing and sorting?
Why Java doesn’t support multiple inheritance?
How do you classify Dialog Box?
Which collection object is faster to retrieving the data and inserting the data into it.
2 Answers Jamcracker, Virtusa,
What is the difference between JDK and JVM?
Which is better stringbuffer or stringbuilder?
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<RegistryKey> subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }
Differentiate between a constructor and a method? Can we mark constructors final?