Advertisements
Advertisements
प्रश्न
What is meant by private visibility of a method?
लघु उत्तरीय
उत्तर
Private methods in Java are only accessible within the class where they are declared. Private methods are contained in their respective classes, ensuring that they are not used elsewhere in the code. This offers them the confidence to adjust or modify the secret approach without negative consequences.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?