Quantcast
Channel: Kevin's Blog » Kevin
Viewing all articles
Browse latest Browse all 21

String Concatenation vs Conditional Operator in Java and JavaScript

$
0
0
Java: JavaScript: (Let’s assume that the authorized is a parameter variable) In Java, if you write code like this, you definitely get a compile time error, since String concatenation gets higher precedence than conditional operator whereas in JavaScript, you don’t get any error although String concatenation has higher precedence just like Java. Reason for that […]

Viewing all articles
Browse latest Browse all 21

Latest Images

Trending Articles



Latest Images