What is onClassLoader in java?
Answers were Sorted based on User's Feedback
Answer / rakesh
class loader is a java file which is in JVM.
At the time of of creation of object the .class(having byte
code in secondary memory)files will be loaded into the
primary memory ie RAM by class loader subsystem
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / anil kumar reddy.mannem
With in the JVM we have CLASSLOADER, BYTECODE VERIFIER, GARBAGE COLLECTOR, SECURITY MANAGER, EXECUTION ENGINE.
CLASSLOADER brings class file into JVM, by using classloader the class gets loaded in to the JVM
Is This Answer Correct ? | 7 Yes | 2 No |
Answer / r.jude silvester
A class loader is an object that is responsible for loading
classes. The class ClassLoader is an abstract class. Given
the name of a class, a class loader should attempt to
locate or generate data that constitutes a definition for
the class. A typical strategy is to transform the name into
a file name and then read a "class file" of that name from
a file system.
Applications implement subclasses of ClassLoader in order
to extend the manner in which the Java virtual machine
dynamically loads classes.
Class loaders may typically be used by security managers to
indicate security domains.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / siva thimmannagari
classloader is a java file.
if u want to see the source code.Go to
docjar.com.u will get the source code of classloader program
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / upendranaidu
class loader is used to load the application program in to
jvm.
Is This Answer Correct ? | 0 Yes | 3 No |
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
How can we achieve IPC in JAVA?
What is an immutable class? How to create an immutable class?
Do loops java?
What is the use of 'super' keyword inside a constructor?
0 Answers Flextronics, Thomson Reuters, Virtusa,
what is different between static and non static methods ,using example
What is ‘has a’’ relationship in java?
How do you declare an infinite loop?
Distinguish between a predicate and a function?
What is a reflection package?
What are the properties of thread?
What is the basic concepts of OOPS?