R
Q. What is the output of this program?
public class Bitwise_Operator { public static void main(String args[]) { int p = 8; int q = 8; int r = p | q; int s = p & q; System.out.println(r + " " + s); } }
And operator produces 1 bit if both operand are 1. Or operator produces 1 bit if any bit of the two operands in 1.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What type of constructor is used to provide different values to the distinct objects?
Q. Which method of DataInputStream class reads a line from the file and returns it as a string?
Q. Identify the prototype of the default constructor. Public class Solution {}
Q. Which of the following methods hits database always?
Q. Which packages represent interfaces and classes for servlet API?
Q. What is the default value of byte, short, int or long data type elements of an array in Java?
Discusssion
Login to discuss.