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
Give an example of call be reference significance.
What does it mean that strings are immutable?
Do I need java on my computer?
Why put method is used?
Is 0 true or false in java?
What does the exclamation mark mean in java?
What is numel matlab?
What is public static void main?
What is the purpose of the system class in java programming?
What is class level lock ?
When do you call copy constructor?
What is diamond operator in java?
What is method overloading in JAVA? Why is it not present in C ?
Explain what access modifiers can be used for methods?
What is classes in java?