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 is identifier give example?
How are this() and super() used with constructors in java programming?
What is exception handling in java?
Can we have a try block without catch block?
What is the hashcode () and equals () used for?
What is immutable data?
What does it mean that strings are immutable?
Is java call by reference?
What are white spaces in java?
State the main difference between c++ and java?
Where import statement is used in a java program?
What does void * mean?
What is final keyword in java?
What is difference between array and vector?
What is the difference between multitasking and multithreading in Java