Wood Chen

2018.04.15 Notes

0 comments62 views72 words

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

Java syntax requires the object’s name before any property or method you access; otherwise, Java cannot tell which object it belongs to. A dot after the object’s name separates it from the property or method. Whenever we use a method name, we always add a pair of parentheses after it. This is because all methods in Java are functions, and a function is written as its name followed by parentheses.

Last updated 2024-01-14

Related posts

Comments 0