To Find the Origin of a Point using a Function in Java
1)What is the accessibility of the variable 'x' attribute?
  

2)What is the accessibility of the print() method?
  

3)What is the output of System.out.println(q.isOrigin());?
  

4)What is the output of System.out.println(p.isOrigin());?
  

5)What does the isOrigin() method return?
  

6)What is the return type of the getY() method in the Point class?
  

7)What is the purpose of the setX method?
  

8)What is the return type of the isOrigin method?
  

9)What condition does the isOrigin method check?
  

10)What are the coordinates of the p point created in the main method?