what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?
3 5509Is 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
import java.io.*; class Demo { public static void main(String args[]) { File f=new File("1234.msg"); String arr[]=f.list(); System.out.println(arr.length); } }
3 6647
What is difference between static class and singleton pattern?
What is volatile data type?
What is java regex?
What are the core java topics?
Can a class be private or protected in java?
What is the use of toarray () in java?
Define immutable object?
What is java full form?
What are advantages of using Java?s layout managers than windowing systems?
What is array in java?
How do you create immutable object in java?
Differentiate between overriding and overloading cases?
Why is java called the platform independent programming language?
What is a local, member and a class variable?
What is string pooling concept?