Question 1: Write a Java program to show use of all the logical operators in Java.
Solution:
package operatorsdemo;
public class BitwiseLogicalOpDemo {
public static void main(String[] args) {
//Integer bitwise logical operator
int a = 65; // binary representation 1000001
int b = 33; // binary representation 0100001
System.out.println("a &...
Showing posts with label bcsl-043. Show all posts
Showing posts with label bcsl-043. Show all posts