1. <br />让计算机帮助我们完成复杂工作(重复性,程序性)<br />C语言代码<br />一份(源)代码,多次编译,到处运行.(使用特定平台编译器)<br />Java代码<br />代码编译成**字节码文件CLASS**,借用java虚拟机(jvm)识别字节码文件,实现一次编译,到处运行.<br />java之所以能跨平台的两个原因:<br />①.java文件经过编译后生成和平台无关的class文件<br />②java虚拟机(jvm)是不跨平台的<br />![image.png](https://cdn.nlark.com/yuque/0/2022/png/27658077/1649730645736-6c2033b0-7886-41f0-b9f2-31da95fc8e1a.png#clientId=uc56b684d-88f9-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=92&id=u3ef01aad&margin=%5Bobject%20Object%5D&name=image.png&originHeight=92&originWidth=610&originalType=binary&ratio=1&rotation=0&showTitle=false&size=66568&status=done&style=none&taskId=ue997bc79-8c65-40e7-8b87-f1dd542a079&title=&width=610)<br />![image.png](https://cdn.nlark.com/yuque/0/2022/png/27658077/1649732176457-041832b4-2de2-4cb9-a66e-ca00afa66d58.png#clientId=uc56b684d-88f9-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=116&id=u776b5cb0&margin=%5Bobject%20Object%5D&name=image.png&originHeight=116&originWidth=780&originalType=binary&ratio=1&rotation=0&showTitle=false&size=38780&status=done&style=none&taskId=ucf8c70ba-8aee-476f-b1f7-0255970440b&title=&width=780)<br />类名首字母大写.<br />注意①java程序以类(class)组织的,

    image.png
    image.png
    快捷image.png
    image.png
    显示注释内容快捷:ctrl+q
    image.png
    image.png
    image.png
    image.png