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
When should the method invokelater() be used?
What is a treeset in java?
Can a main method be overloaded?
Why hashmap is used in java?
What does null mean in java?
What is java and why do we need it? Explain
What is the difference between I ++ and ++ I in java?
What is the primary benefit of encapsulation?
Differentiate between overriding and overloading cases?
Using callable statement how can you pass out parameters, explain with example?
What are the different types of constructor?
What is appletviewer?
How do you convert an int to a double in java?
What does it mean to be immutable?
Why do we use predicate in java?