June 2018
Beginner
722 pages
18h 47m
English
The separator . (period) is used to separate parts of the package name, as you have seen in the com.packt.javapath example.
You also have seen how the period was used to separate an object reference and the method of that object:
int result = simpleMath.multiplyByTwo(i);
Similarly, if a simpleMath object had a public property of a, it could be referred to as simpleMath.a.
Read now
Unlock full access