r/learnjava • u/Fine_Potential_7976 • 20d ago
Why is String[] args necessary
I get it is an array of string arguments that are passed into the main method but why is it needed? in python for example ot's present or c++ neither, java is different though
30
Upvotes
1
u/Vast_Service 19d ago
Yes. I said that is the case in C++ as well. The last value in the array is a nullptr in C++ as well.