Skip to main content
6 events
when toggle format what by license comment
Dec 3, 2017 at 2:33 comment added Oleg @meriton Chapter 3 Operator table doesn't include Operator instanceof that's a contradiction. Yes method invocation can also be seen as an operator.
Dec 2, 2017 at 23:25 comment added meriton @Oleg: Chapter 3 is crystal clear, and I fail to see what part of chapter 15 "contradicts" it. If you mean to say that the mere presence in chapter 15 implies new to be an operator, the same reasoning would apply to method invocation expressions ... are you seriously calling () an operator?
Dec 2, 2017 at 5:49 comment added Oleg @meriton The JLS contradicts itself in chapters 3 and 15 regarding what is and isn't an operator. Chapter 15 not having an explicit reference to new as an operator doesn't mean that it's not an operator. Based on everything else it's as much of an operator as other operators discussed in that chapter.
Dec 2, 2017 at 0:16 comment added meriton The authoritative source about the Java Language, the Java Language Specification, does not include new in its list of operators. Makoto's premise is therefore entirely correct. However, I am doubtful the argument generalizes to other languages. For instance, the EcmaScript spec calls new an operator.
Dec 1, 2017 at 8:38 comment added Oleg new being a keyword, not an operator in Java is at the very least debatable The new keyword is a Java operator and includes new and the new operator
Nov 30, 2017 at 22:58 history answered Makoto CC BY-SA 3.0