You should keep your age to yourself imo, people are judgemental assholes when it comes to things such as Age, Color, Gender just as much as Java experience, even when they don’t realise they are doing it.
When someone knows a characteristic or skill level of a person, they tend to keep it at the back of their mind when interacting with them. In most cases this is ok, others not ok.