Answer the question
In order to leave comments, you need to log in
How to find out about available fields and methods in Java (similar to dir in Python)?
I am a Python developer but have recently started learning Java. Many familiar (and very convenient) things for Python in the Java language are missing. For example, when developing, I often use the dir function, which gives me a small overview of an object.
Question: can this (or something similar) be done in Java and how?
Answer the question
In order to leave comments, you need to log in
Java doesn't have repl, so either you want it in debug or before compilation. In any debugger, it is possible to see what is inside the objects. And before compilation - look at the sources and docks. IDEs make this very easy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question