what is an object and how do you allocate memory to it?

Answer Posted / devarathnam

Hi... An object is nothing but instance of the class,or
basic run-time entity.By using "new" operator we can
allocate the memory of an object

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parts of methodology?

727


What is the default execution method in java?

837


Is string a wrapper class?

709


What is the function of compareto in java?

786


What are the advantages of functions?

700


Which collection is ordered in java?

717


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

856


What are the various access specifiers for java classes?

752


What is keyword and identifier?

850


Write a java program to print fibonacci series?

728


Why unicode is important?

659


What is the common usage of serialization? What exceptions occur during serialization?

794


What is exception handling in java?

757


Does printwriter create a file?

719


Can you sort a list in java?

716