-The dot operator(.) is used to access the instance variables and methods of class objects.
-It is also used to access classes and sub-packages from a package.
Examples :
Person1.age ---------> Reference to the variable age
Share To Friends Via:
More Questions For Programming in Java:
What is Java? (Answered) What is Java? . Posted On:Sat 20, March 2021 20:03:42 pm