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
Can a class extends itself in java?
Is java a super set of javascript?
What does @override mean?
What is the use of list in java?
What do you mean by constant time complexity?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
How do you remove spaces in java?
How many types of the indexof method are there for strings?
Can finally block be used without a catch?
What is meant by inheritance and what are its advantages?
Differentiate storage classes on the basis of their scope?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is private static in java?
Is boolean a data type in java?
Which graphs are functions?