In Java, we have some modifiers: protected, public, private. In UML, they are #, +, -, respectively.
My question is, what does the tilde ~ symbol mean in UML? And does it have any meaning in Java, C++?
It means package visibility, which is equivalent to the default access in Java. No analogue in C++.