• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any Macro's concept in Java as in C and C++??

 
Murali Obla
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
As in C and C++ is there any Macro concept available in Java.ie like #define Function.Please let me know if available
Regards,
Murali
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no there isnt.
Macors depend on preprocessor commands.. since java hasnt got a preprocessor (pre compiler) then it hasnt got macros as well.
 
Ivan Tamayo
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fortunately, not
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"You must unlearn what you have learned." - Yoda
In fact the code becomes confusing very quickly when Macro are allowed to run free.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic