Java exam. I need help in answering.
1. How is Java Compiler Accessed?
2 How is a Java program accessed?
3 How is the program displayed(i feel it is displayed on the console interface or cli if the app is run through the shell)
4 How is it saved( .java)
5 How is a java program compiled and executed
1. With 'javac' 2. By double clicking on it 3. By running it with java -jar <your_jar> 4. By pressing <ctrl/cmd>+S 5. It's compiled with javac to bytecode, when running a .class, the JVM executes the bytecode to native code with JIT. By default behaviour will be "dynamicly" (bytecode straight to native code), if it detects behaviour is executed multiple times, the behaviour is transformed into static code.
These are not tricky questions, they are as basic as it gets
Обсуждают сегодня