4 ms·
>JavaScript code are all in text. Is Java bytecode not text based? If not, how would you classify it?
by jelled 13y ago
>JavaScript code are all in text.
Is Java bytecode not text based? If not, how would you classify it?
- JosephRedfern 13y agoNo, it's an array of bytes. Disassembled Java bytecode could be considered text-based, but I'm pretty sure the actual class files are considered binaries.
- MaysonL 13y agoOf course, Java code is all binary, not at all human-readable or writeable. And there are not compilers for Javascript (except for a few JIT compilers in Safari, Chrome, Internet Explorer, and maybe Opera).
- mbq 13y agoActually all modern browsers and standalone interpreters like node.js have a JIT compiler for JavaScript; and while Java's bytecode is still not a machine code and is also JIT compiled by the Java "virtual machine", both languages are equally "scripting" or equally "non-scripting" (wherever you want to put the "scripting" line).
- MaysonL 13y agoI guess I shouldn't have left off the <sarcasm> tag.