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 5386Is 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 6519
What is thread start?
What are java packages? What's the significance of packages?
What is this () in java?
What is the difference between variable declaration and variable initialization?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is the reflection?
What is the difference between char and char *?
What is java object name?
java program with complete 4 oops concepts implemented example
What is an example of procedure?
Can we have any other return type than void for main method?
How to retrieve data from database in java using arraylist?
What do you mean by static variable?
What are the Main functions of Java?