I was watching a Udacity video and I realized they declared their arrays a bit different than I did. The way they created their arrays was:
String words[] = new String[] {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"};
and the way I usually declare it is
String words[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"};
My guess would be when the "new" keyword is omitted, it would be created on the stack and when the new keyword is introduced, it would be on the heap.
Edit: I've already visited the links provided when this topic was marked as a duplicate. One user said that when the "new" is omitted, that it couldn't be passed through a method. I was wondering why that was as well. What is the difference between an anonymous array and a regular String array?