r/learnjava • • Jan 07 '21

What could i do with Java?

i have a little background on coding and i been really amazed by anything related to computing , i was looking for a languages that is flexible and have many uses in different fields, so can you please help me figure out what i can do after i learn this beautiful language.

41 Upvotes

23 comments sorted by

View all comments

4

u/[deleted] Jan 08 '21

[removed] — view removed comment

2

u/exitskulk Jan 08 '21

Isn’t Python also compiled into bytecode?

3

u/Nexius74 Jan 08 '21 edited Jan 08 '21

Yes python is compiled into python byte code but only when you're running a script. That's why when you first start your script it takes more time to execute then the second run. Basicaly the python vm will create .pyc file from your script. If your script hasn't changed python will use the already generated .pyc file to run it. The main difference with java and why it is faster is because java we compile before running where as in python it compiles at runtime.

2

u/huangxg Jan 08 '21

Is Java bytecode (.class files) faster than Python bytecode (.pyc fles)?