Code evaluation

A

Arnaud Casteigts

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

thanks by advance !
 
A

Alex Kizub

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top