XtraStudy Header LOGO Home
Java Interview Questions
Question 16
Q.16 What do you mean by class ?

A class is a blue print from which individual objects are created. A class can contain fields and methods to describe the behavior of an object.
⚔ DISCUSS

Question 17
Q.17 What is classloader ?

The classloader is a subsystem of JVM that is used to load classes and interfaces. There are many types of classloaders e.g. Bootstrap classloader, Extension classloader, System classloader, Plugin classloader etc.
⚔ DISCUSS

Question 18
Q.18 What kind of variables a class can consist of ?

A class can consist of Local variable, instance variables and class variables.
⚔ DISCUSS

Question 19
Q.19 What is a Local Variable ?

Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and it will be destroyed when the method has completed.
⚔ DISCUSS

Question 20
Q.20 What is a Instance Variable ?

Instance variables are variables within a class but outside any method. These variables are instantiated when the class is loaded.
⚔ DISCUSS

Categories

Comments (0)


 XtraStudy ADVT Skill India