Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Static Overloading

 
Tarun Oohri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone
I have been asked this question in an interview. Please help me to understand it. It is as follows :
What do you mean by static overloading and dynamic overloading ?
Thanks!!!
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you answer?
I do not think there is such a thing as dynamic overloading in Java®
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question seems meaningless... at least, it has no standard meaning. Perhaps it was an attempt to ask about the distinction between overloading, which is static, and overriding, which is dynamic? (See: Overriding vs. Hiding) We can only guess at what's in the minds of bad interviewers.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure but they might refer to Dynamic Binding?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly, but dynamic binding is used to implement polymorphism and overriding not overloading. MS is right to go on about bad interviewers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic