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

Answer Posted / janet

Object is an instance of a class and it is a software unit
that combines a structered set of data with a set of
operations for inspecting and manipulating that data. when
an object is created using new operator,memory is allocated
to it.

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

worst case complexities of Quick sort and Merge sort.

593


What is "this" keyword in java? Explain

653


What is compareto () in java?

534


What is meant by attribute?

590


What are the high-level thread states in java programming?

577






What happens if I remove static from main method?

515


How many ways can we create singleton class?

497


What is data type in computer?

515


What is a ternary operator in java? What is an interface?

546


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1812


Can we print null in java?

566


What are the four versions of java?

537


What is tree in java?

484


What is anagram in java?

512


What’s a deadlock?

607