What is the difference between Object and Instance?
Answer Posted / titupathirao
For example, if I declare a class like
Animal a=new Animal();
Is variable 'a' in above is an instance which has an object of Animal type?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is default switch case? Give example.
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is procedure writing?
How to display names of all components in a Container?
How do you start a thread?
Is int a class in java?
Is 0 true or false in java?
What is difference between stringbuffer and string?
Which class is the superclass for every class in java programming?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
Which methods cannot be overridden in java?
How do you define a variable?
What is java thread dump, how can we get java thread dump of a program?
Does java trim remove newline?
What is the difference between final, finally and finalize() in java?