What is the difference between & and && in Java?

HTML, CSS, Javascript, php, C++, C# , Java and other Programming Language Discussion
Post Reply

Junior
Posts: 21
Joined: August 1st, 2018, 8:41 am
Gender: M
full name:

What is the difference between & and && in Java?

#1

Post by Junior » November 14th, 2019, 2:52 am

I always find it difficult to understand the difference between & and &&. From my understanding, it's not the same, seems they don't perform similar functions.
What's the difference?
When should I use either of it.

(Quote)




SHARE WITH FRIENDS











  •  LOGIN