Given: String[] elements = { "for", "tea", "too" }; String first = (elements.length > 0) ? elements[0] : null; What is the result?()
- ACompilation fails.
- BAn exception is thrown at runtime.
- CThe variable first is set to null.
- DThe variable first is set to elements[0].