All code in my posts, unless a source is explicitly mentioned, is my own.
namrata mahajan wrote:
But there are some methods in the object class which have body and some methods which dont have body.Why is it so?
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
namrata mahajan wrote:
In Object class there are notify() and notifyAll() methods which are abstract and we use them without writing method body in our code and they perform the task. so my question is how they do the task is it that they have been actually defined somewhere???
srikanth mycherla wrote:does the object class has default constructor like this
public object()
{
}
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
namrata mahajan wrote:
In an Object class some methods are abstract and some are concrete.But Object class is a concrete class.Then why object class is having abstract methods.Why object class is not abstract class?
In Object class there are notify() and notifyAll() methods which are abstract and we use them without writing method body in our code and they perform the task. so my question is how they do the task is it that they have been actually defined somewhere???
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
namrata mahajan wrote:Hi shrikant,
I have gone through src.zip folder.There is no default constructor for object class.
SCJP 6
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |