[Java in NetBeans] Lesson 01. Java Programming Basics

Java编程基础
本文详细介绍了Java编程的基础知识,包括创建项目、使用jar文件、多行注释和单行注释的使用方法。此外,还讲解了类的概念,即对象的模板,以及public和private访问修饰符的区别。static关键字的作用也被提及,它可以让你在不定义实例的情况下使用方法。最后,文章强调了void关键字表示的方法不返回任何值。

这个课程的参考视频在youtube

    主要学到的知识点有:

  1. Create new project, choose Java Application.
  2. one .jar file/ package(.jar name with the same as package), one package can contains mutiple .java files.
  3. Comment mutiple lines by using "/* */"; comment one line by using "//"
/*
*  This is example to comment mutliple lines
*/

// This is one line comment

 

  • A class is the template from which objects are created.
  • Object: Instance of a class.
  • public can be accessed by other class and private can not.
  • static means that you can use it without define it first. (also allow method to been used by other class without define an object)
  • void mens return nothing, like in C.
  • Statements should end with ;

转载于:https://www.cnblogs.com/Johnsonxiong/p/9819289.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值