Code evaluation

Discussion in 'Java' started by Arnaud Casteigts, Dec 10, 2004.

  1. Hi,
    Is there a way in Java to evaluate (execute) a code dynamically
    generated ? (as PHP function eval() for example)

    thanks by advance !
    Arnaud Casteigts, Dec 10, 2004
    #1
    1. Advertising

  2. Arnaud Casteigts

    Alex Kizub Guest

    > Is there a way in Java to evaluate (execute) a code dynamically
    > generated ? (as PHP function eval() for example)


    Even Java is interpreter it still require complier, then byte code, then
    execution.
    So, answer is no.
    Of course you can run javac in separate thread or use your own compiler.

    But if you can do this then c.l.j.p. is not for you. :)
    Alex Kizub.
    Alex Kizub, Dec 11, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    2
    Views:
    375
    Ilias Lazaridis
    Apr 24, 2005
  2. Xah Lee
    Replies:
    0
    Views:
    337
    Xah Lee
    Jun 21, 2009
  3. Xah Lee
    Replies:
    0
    Views:
    217
    Xah Lee
    Jun 21, 2009
  4. Ilias Lazaridis
    Replies:
    74
    Views:
    701
    Ilias Lazaridis
    Apr 4, 2005
  5. Ilias Lazaridis
    Replies:
    18
    Views:
    311
    Bill Guindon
    Apr 9, 2005
Loading...

Share This Page