I do not know if this is a duplicate (could not find the words to search, for example, "valid java character"). I had this question in a test interview:
<h / "> Consider the following class:
class _ {_ f; _(){}_(_ f){_ t = f; f = t;}_(_ f, _ g){}}
- Will it compile?
- If so, what does this code do?
So my answer was no, but I was wrong. Can someone explain to me how this compiles? (I'm trying to execute my IDE, and I was surprised that yes, it compiles)
source
share