What exactly do you mean by instance? Reply
What exactly do you mean by instance? Reply
i too need ans
Generally in any programming languages we do need memory to get execute our programs.
In JAVA when we want to execute any program it won’t execute at a time. We can only execute the particular piece of code when only that portion of code required to be executed by the JVM. Since JAVA follows Dynamic loading concept.
So our program needs memory to run. When we want to execute piece of code then that would be loaded into RAM from Hard disk and get execute , As soon as this happens the .exe code of our program would automatically gets deleted by JVM itself.
We call the piece of memory which is allocated for that code is called Instance of memory.
That is the reason why when we create an object certain memory will be allocated for that object thus we call that object as instance of class.
Regards,
Ram!
There are currently 1 users browsing this thread. (0 members and 1 guests)