Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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!