New course! Every coder should learn Generative AI!
Try a free lesson0
Why i can't initialize a primitive type in main method in Java codes ?
Please help me...
1 Answer
+ 3
You CAN initialize a primitive data type in the main method.
It is only a problem if you don't initialize it before using it.