Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

overloading  RSS feed

 
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.
 
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"?
 
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
 
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 ]
 
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.
 
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!