What is the "and" and "or" Operator in Kotlin? : <p>We all know that in Java, we use the &amp;&amp; operator for "and" and || operator or "or". But when it comes to Kotlin, this doesn't work. When I was trying out a simple program, I noticed that the &amp;&amp; operator in Kotlin was behaving like the || operator in Java using IntelliJ, I have no idea why.</p>

<pre><code>while(day!=1 &amp;&amp; month != 1 &amp;&amp; year!= 0) {
    ...
    ...
}
</code></pre>

<p>When I debugged the program, I saw that when day = 1, month = 8, year = 1947, it jumped out of the loop.</p>

<p>I modified the code and debugged again, this time it jumped out when day = 31, month = 1, year = 1947.</p>

<p>So what exactly is the "and" and "or" operator in Kotlin?</p>
