In python you can do this: Is there an equivalent in java? Answer tl;dr: No, there isn’t such a thing in Java. You can assign initial values to variables like this: But if your want (1, 2, 3) to be the result of a method call, this is not possible in Java. Java does not allow returning multiple values. Python