P
P
plshlp2020-07-28 09:03:23
Java
plshlp, 2020-07-28 09:03:23

Code compilation time?

Good afternoon. I'm a newbie and there's a lot I don't know yet. But how long should hello world to java compile? And does iron depend on it? (weak laptop amd e2-9000e) Approximately 4 seconds displays the simplest code in inteliji idea

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2020-07-28
@plshlp

The compiler itself works for a fraction of a second, the IDE imposes all other costs.

D
Developer, 2020-07-28
@samodum


how long should hello world to java compile? And does iron depend on it?

Not hardware depends on compilation, but compilation depends on hardware.
And it depends a lot. Critically

A
Alexey, 2020-07-28
@zeroWiNNeR

plshlp , create a text file, name it Main.java, write a program (example below)

public class Main {
   public static void main(String[] args) {
       String str = "Hello World!"
       System.out.println(str);
   }
}

you open the console, you come into the directory with a class. Two teams:
"путь к javac.exe" Main.java
"путь к java.exe" Main
And a miracle! No ide needed :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question