Telegram Group π₯π₯π₯
Get answers in minutes
Questions answered :
48
/50
Answer verified
What is the result of compiling and running the following code? public class Test{ public static void main(String[] args){ int[] a = new int[0]; System.out.print(a.length); } } A.0 B.Compilation error, arrays cannot be initialized to zero size. C.Compilation error, it is a.length() not a.length D.None of the above
π Dec 4, 2024
votes
Gabriella
π India
give solution please
votes
Victoria
π India
can anyone share the explanation, please?
Was your question answered?
Thanks for the feedback! β
Want to get famous? πΈ
Answer question and get π€© high-lighted on our homepage.