Understanding Question Mark and Colon Operators in Java Programming

Today I was having issues understanding syntactically how ? and : operators work in Java on some legacy code I was reading. The issue was that all definitions I found through google practically sucked until I found this one by “cricket_007” on StackOverflow.

Either way, I got it figured out and am documenting this and raising awareness for other developers in the future.

Thanks so much “cricket_007” and here is the link if anyone is interested:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s