Computer Science, asked by snehakumari05, 7 months ago

can you think of the benefits of a private class if any ? what are they ?​

Answers

Answered by agabhisai123
0

Explanation:

yes it is benefits of a private class .

like many more

Answered by amruthavarshini18
2

Answer:

It's by default thread-safe, lazily initialized and faster to access because of no synchronization. Private inner class can be used when you require a class that's going be used only by one class then you can declare this class private and put it into the class that will use it.

Hope this answer helps you

MARK ME AS BRAINLIST

Similar questions