It kind of depends on the question. IfIf the question is being asked from a "how do data structures work" perspective, and you answer the question using a Java 8 construct that essentially does the data structure work for you but hides the details of the data structure's inner workings, then you're not really answering the question, are you?
On the other hand, if you're answering a question that is language-agnostic, a Java Stream or lambda expression seems a bit specific. Very likely someone asking a language-agnostic question is looking for something a bit more broadly applicable than that. For language-agnostic questions, think more in terms of rudimentary C, Python, Javascript or pseudocode, as the question is more likely algorithmic in nature.
But again, it depends on the question. InIn general, if the question isn't even tagged Java, I would avoid features that require knowledge about a specific version of Java.