• Post Reply Bookmark Topic Watch Topic
  • New Topic

overloading  RSS feed

 
savitha reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
can anybody tell me what is compile time object and run time object..
if you can give detailed explanation it would be better.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objects are created by the JVM at runtime. There are no "objects" at compile time.

Can you explain more about what you're asking? And how this relates to "overloading"?
 
Francesco Bianchi
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Savitha is having some problems with understanding polymorphim. In particular the case where you pass an instance of B to a reference of type A (assuming B extends A) to call a method both classes implements.

Am I right?
 
savitha reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for example ,
dog d=new dog()

then you mean to say that dog object is created at run time and not at compile time... and only the syntactical errors are checked during run time
 
savitha reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry.. i meant only the syntactical errors are checked during compile time
 
venu jayaram
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes

at the time of compile time checks the syntax.
[ April 26, 2008: Message edited by: venu jayaram ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The compiler also checks for other things, like dependencies.
It does not, as everyone else here has stated, create any objects.
 
ankit kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Objects are created by the JVM at runtime. There are no "objects" at compile time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!