0

Is it possible to access private methods from another class in java without using reflection api?

Is it crct to have a public method to call a private method in the same class inorder to access that private method from another class?Like below https://code.sololearn.com/cGEIM0I8M4Ex/?ref=app If this is not the way,please tell the reason.

17th Oct 2019, 5:57 AM
viki
viki - avatar
4 ответов
+ 2
Of course NO!
17th Oct 2019, 6:19 AM
id001x
id001x - avatar
+ 2
tq ppl for clearing my doubt ~ swim ~ id001x
17th Oct 2019, 6:59 AM
viki
viki - avatar