can we add two numbers without using arthematic operators?
if possible how?
Answer Posted / sravanthi
Yes we can 2 numbers without using arthematic operator.
We can use logical operators instead of arthematic operator.
The ex program is
class A
{
public static void main(String a[])
{
byte a=5;
byte b=6;
int c;
c=a||b;
System.out.println(c);
}
}
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Does java have a compiler?
What will happen if static modifier is removed from the signature of the main method?
Explain thread in java?
what do you mean by classloader?
What are the disadvantages of object oriented programming?
Why are the objects immutable in java?
What is the multi-catch block in java?
Can we clone singleton object in java?
In which language java is written?
What is the r character?
Which is better singleton or static class?
how many types of Inheritance?
How do you call a reference in java?
Explain purpose of sleep() method in java?
What is the benefit of using enum to declare a constant?