Does the parameter String args[] for accepting commandline arguments in main() have an impact if no commandline arguments are provided.
Does it:
- Create a new object of String?
- Is any memory allocated to it?
What does Java do when it encounters String args[]?
Update:
Wanted to ask a related a Question: If no cmdline args are provided, Will String args[] be empty or null?
prints
Note: this print how much memory was used to create an object. This can be more than the amount retained if temporary objects are created.