Correct Answer: Instance variables are those which are defined at the class level Instance variables need not be initialized before using them as they are automatically initialized to their default values
Correct Answer: Platform independence means that we can write and compile the java code in one platform (Eg Windows) and can execute the class in any other supported platform (Eg Linux,Solaris,etc)
5. What is the difference between a JDK and a JVM?
Correct Answer: JDK is Java Development Kit which is for development purpose and it includes execution environment also JVM is Java Virtual Machine which is a run time environment for the compiled java class files Hence you will not be able to compile your source files using a JVM