definition

is a symbol that creates an activity in Java

activity java

Which activities?

Think of addition, subtraction and all those other activities:

example

The basic operations are built-in in Java. You could checks this for example in the following way:


You need to know:


package Compare;

class Compare {
	
	void start() {
		System.out.println(1 + 1);
	}

	public static void main(String[] args) {
		new Compare().start();
	}
}

 

If you ran this code, you did probably notice that:

without letting the program know what a plus-sign does, Java exactly knows which activity it has to perform if it sees a plus-sign.