Core Java Reading Notes(Chapter 3)

  • A Simple Java Program
  • Comments
  • Data Types
  • Variables
  • Operators
  • Strings
  • Input and Output
  • Control Flow
  • Big Numbers
  • Arrays

Sample:app

public class FirstSample  
        { 
            public static void main(String[] args)
               {
                   System.out.println("We will not use hello world!");
               }
        }

First and foremost, Java is case sensitive, which means FirstSample is different with firstsample or Firstsample.ide

public: access modifier, controls the level of access other parts of a program have to this code.this

class: think of a class as a container for the program logic that defines the behavior of application. Everything in Java programs must be inside a class.code

(to be continued)rem

相關文章
相關標籤/搜索