Nested classes VS Inner classes?

Answer Posted / kamal hassan

A staic class difined with in anothaer class is called
nested class.
A non static class defined in another class is called inner
class.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string value?

634


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

521


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

559


What is finally and finalize in java?

590


What is local variable and instance variable?

604






What is a java applet? What is an interface?

627


What is stack explain?

497


Differentiate between vector and array list.

634


Explain the selection sort algorithm?

640


How do you execute a thread in java?

503


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

1347


What is difference between equals and hashcode method?

566


What is the unit of plancks constant?

569


Is 0 a prime number?

568


What are implicit objects in java?

549