72.3k views
2 votes
Consider the following method: static void nPrint(String a, int n) { System.out.println(a.charAt(n)); } What potential error could this method cause? Logic Error Run time error - index out of range Compile time error - index out of range Run time error - incompatible types Compile time error - incompatible types

1 Answer

7 votes
Briefly explain why it is necessary to critique a scientific argument before it is accepted.

User Ghanshyam Singh
by
8.0k points