What are field variable and local variable?

Answer Posted / ravikiran(aptech mumbai)

field variable is the one which can have different access
local variable access restict to method only

Is This Answer Correct ?    8 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare an interface as final?

769


How can the checkbox class be used to create a radio button?

743


What's the difference between an abstract class and interface in java?

774


How do you format in java?

770


Explain garbage collection in java?

739


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

1538


Which list is sorted in java?

755


What are the advantages of java inner classes?

767


If a class is declared without any access modifiers, where can the class be accessed?

794


Is a method a function?

783


Can you use this() and super() both in a constructor?

723


What is the difference between inheritance and encapsulation?

841


How objects are stored in java?

745


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

907


What do you understand by java virtual machine?

913