How to fix errors in a java code


Discussion:

Task:

You coded the following in the Test.java

int [ ] a = { 1, 2, 3 );

System.out.println ( a );

The code compiles properly and runs, but the result is not what you expected; the output is similar to the following:
[I@f0326267

Q: Explain what the problem is how to fix it.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: How to fix errors in a java code
Reference No:- TGS01934167

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)