Earlier quoted context omitted.
That is incorrect. People with exceptional abilities are covered under EB-1 green cards (and O-1 visas). H-1B was created to bring people in specialty occupations requiring a bachelor's degree or equivalent experience. A Java developer definitely meets the bar (with the right degree or experience).
It's impossible to truthfully state on an H1-B form that the US labor market can't provide an experienced Java developer.
But it's also possible to say that one hasn't been able to find a skilled-enough Java developer.