Java takes you to new places:The lure of write-once/run-anywhere(写一次就可以在所有地方执行) is just too strong.

The Way Java Works

<headfirstjava>_1.BreakingTheSurface

Writing a class with main

Running a program means telling the Java Virtual Machine(JVM) to "Load class, then start executing its main() method. Keep running 'til all the code in main is finished."


syntax

1.Each statement must end in a semicolon.

2.A single-line comment begins with two forward slashes.

3.Most white space doesn't matter.

4.Variables are declared with a name and a type.

5.Classes and methods must be defined within a pair of curly braces.

<headfirstjava>_1.BreakingTheSurface

<headfirstjava>_1.BreakingTheSurface

Command-line invoker: 命令行调用程序

prompt:a sign on a computer screen which shows that the computer has finished one operation and is ready to begin the next.〔计算机屏幕上的〕提示符〔显示计算机已完成某项操作,准备进入下一项〕


相关文章:

  • 2021-05-04
  • 2021-12-10
  • 2021-07-06
  • 2021-12-27
  • 2021-08-17
  • 2021-06-09
  • 2021-10-04
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-01-07
  • 2022-12-23
  • 2021-12-05
  • 2021-06-12
相关资源
相似解决方案