Java Basic

Edit:使用记事本编辑程序,每一个Java程序都有拓展名 .java

Compile:在cmd上使用javac命令编译java程序,生成一个 .class文件

Load:Java程序必须先加载到内存中才能执行,使用 java+文件名命令

Verify:检查程序中无错误

Execuct:使用虚拟机编译字节码(bytecode),并运行

three comment formats:1.// one line 2./*many lines*/ 3.//*doc 文件*doc文件*doc文件*/

Compile ignore comments

{} delimit code block,and must be in pairs

indentation highlights the structure of the code

Define a class

An application must have a main method

Complie excute main method first

Output can be achieved by println and print command

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值