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 a linkedhashmap java?
what are different ways in which a thread can enter the waiting state? : Java thread
What is the difference between the ">>" and " >>>" operators in java?
In which language java is written?
What is polymorphism java example?
What is Enum in Java?
What is the access scope of protected access specifier?
What is the differences between heap and stack memory in java? Explain
What is byte value?
Is hashset sorted in java?
What is methods in java?
What is a void method java?
Can we have try without catch block?
What is difference between public static and void?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?