| Handle two method() and use logical operator with them
Below is the code to handle two method() and then use logical operator with if condition with & operator. Find the output of below:-
Output:- output for above example is gievn below
Output 1
Output 2
But if condition will never executed as one return true and another one return false. We use & operator to check True & False. | | |