can we add two numbers without using arthematic operators?
if possible how?
Answer Posted / anandhakrishnan
import java.io.*;
class add
{
public static void main(String args[])
{
int a = 6;
int b = 3;
System.out.println("sum of a and b is :: "+(a|b));
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What do u mean by variable?
Explain about the select method with an example?
What is array sorting in java?
Is an object null?
What is linked hashmap and its features?
Why vector class is used?
What do you understand by looping in java? Explain the different types of loops.
Whats the difference between notify() and notifyall()?
What is the access scope of a protected method?
How do I find and replace in word?
Is java pass by value or pass by reference?
What is palindrome in java?
What is java virtual machine? Explain
What is the difference between the size and capacity of a vector?
Can I override protected method in java?