Core Java Interview Questions
Questions Answers Views Company eMail

how to create an applet

2 3434

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 4247

Is java pure object oriented or not? if yes, give the valid reason.

Emphasis, NIIT, Syntel, Wipro,

13 17528

How many types of thread in java? give the name

Cisco, NIIT,

13 50605

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 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". } } }

Google,

1336

why java is better then .net?

HCL, iGate,

5 7410

What is an anonymous class?

IBM,

1 4738

WHAT IS JDK,JVM,CLASS DEFINE ALL?

2 3627

i don't want fullforms of JDK an JVM i want definitions for them

2 3839

what is the full form of java

3 8129

what is the diffrence between class and object?

5 4927

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); } }

IBM, Ramco,

3 5156

how jvm allocates memory for stack?

HP, Ramco,

1 3716

What is dynamic dispatch in java?

4 7106

what is the difference between String and StringBuffer classes?

Infosys,

2 4371


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is flush () in java?

544


What is the purpose of using break in each case of switch statement?

552


What is final keyword?

629


can java object be locked down for exclusive use by a given thread? : Java thread

515


Why collection is called framework in java?

527






Do we need to manually write Copy Constructor?

591


Is null false in java?

692


Give few difference between constructor and method?

503


When should I use singleton pattern?

528


What is nan inf?

489


What is the covariant return type?

554


What is the significance of listiterator?

557


What is the method to expand and collapse nodes in a jtree?

597


How do you clear a method in java?

526


What is the difference between static method and instance method in Java?

553