[Java in NetBeans] Lesson 01. Java Programming Basics

这个课程的参考视频在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.
  • Objects is instances 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.
  • void mens return nothing, like in C.
  • Statements should end with ;

原文地址:https://www.cnblogs.com/Johnsonxiong/p/9819289.html

时间: 2024-08-28 13:00:19

[Java in NetBeans] Lesson 01. Java Programming Basics的相关文章

Java入门 - 语言基础 - 01.Java简介

原文地址:http://www.work100.net/training/java-intro.html 更多教程:光束云 - 免费课程 Java简介 序号 文内章节 视频 1 概述 2 主要特性 3 发展历史 4 开发工具 请参照如上章节导航进行阅读 1.概述 Java 是由 Sun Microsystems 公司于1995年5月推出的 Java 面向对象程序设计语言和 Java 平台的总称.由 James Gosling 和同事们共同研发,并在1995年正式推出. Java 分为三个体系:

[Java in NetBeans] Lesson 15. Sorting and Searching.

这个课程的参考视频和图片来自youtube. 主要学到的知识点有: Build in functions in java.util.Collections Need to implement a comparator - a special class which returns an integer comparision of two object, if  compare(a,b), if return negative number, a will be before b, otherw

[Java in NetBeans] Lesson 17. File Input/Output.

这个课程的参考视频和图片来自youtube. 主要学到的知识点有: We want to handle the bad Error. (e.g bad input / bugs in program) 1. File() : A Java representation of a file. File file = new File("test.txt"); 2. PrintWriter() : Write to a file. Write string into the file. /

[Java in NetBeans] Lesson 03. More Variables / Type Casting

这个课程的参考视频在youtube. 主要学到的知识点有: It is different from python, that "1" only present string "1", and '1' only presents char '1'. (type) can chang the type , e.g. (int) (totalScore/4.5); will change the result of(totoalScore/4.5) which is a

Java集合系列:-----------01集合的整体框架

内容来自:http://www.cnblogs.com/skywang12345/p/3308498.html Java集合是java提供的工具包,包含了常用的数据结构:集合.链表.队列.栈.数组.映射等.Java集合工具包位置是java.util.*Java集合主要可以划分为4个部分:List列表.Set集合.Map映射.工具类(Iterator迭代器.Enumeration枚举类.Arrays和Collections)..Java集合工具包框架图(如下): 大致说明: 看上面的框架图,先抓住

01 java断言assert初步使用:断言开启、断言使用

参考文件:http://blog.sina.com.cn/s/blog_59c9412d0100fd55.html 1 说明 java断言assert是jdk1.4引入的. jvm断言默认是关闭的. 断言可以局部开启的,如:父类禁止断言,而子类开启断言,所以一般说“断言不具有继承性”. 断言只适用复杂的调式过程. 断言一般用于程序执行结构的判断,千万不要让断言处理业务流程. 2 判断eclipse是否开启了断言 代码如下: public static void main(String args[

01.Java关键字,常量,变量,数值类型

2.1.关键字 1.用于定义访问权限修饰符的关键字:private ,protected ,public 1)private (私有的): private 关键字是访问控制修饰符,可以应用于类.方法或字段(在类中声明的变量). 只能在声明 private(内部)类.方法或字段的类中引用这些类.方法或字段.在类的外部或者对于子类而言,它们是不可见的. 所有类成员的默认访问范围都是 package 访问,也就是说,除非存在特定的访问控制修饰符,否则,可以从同一个包中的任何类访问类成员 2) prot

01.Java基础问题

目录介绍 1.0.0.1 请手写equal方法,讲讲具体的原理?1.0.0.2 请说下String与StringBuffer区别,StringBuffer底部如何实现?String类可以被继承吗,为什么?1.0.0.3 String a=""和String a=new String("")的的关系和异同?String的创建机制?1.0.0.4 static关键字可以修饰什么?static使用的注意事项有哪些?static关键字的特点?1.0.0.5 为什么 Java

[01]java基础回顾

00 Java语言       由美国SUN公司发明于1995年,是目前业界应用最广泛.使用人数最多的语言,连续多年排名世界第一,可以称之为“计算机语言界的英语”. Java广泛应用于企业级软件开发.安卓移动开发.大数据云计算等领域,几乎涉及IT所有行业.   01 Java历史 1991年,James Gosling在SUN公司的工程师小组想要设计这样一种小型计算机语言.该语言主要用于像电视盒这样的消费类电子产品.另外,由于不同的厂商选择不同的CPU和操作系统,因此,要求该语言不能和特定的体系