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 support pointers?
What is type inference in java8?
What do you mean by ternary operator in java?
Which is better singleton or static class?
How do you create a method in java?
How does compareto method work?
What is the static import?
What is a default constructor and also define copy contrucyor?
What is initial size of arraylist in java?
what do you understand by synchronization? : Java thread
If I only change the return type, does the method become overloaded?
Why is the main method declared static?
If a method is declared as protected, where may the method be accessed in java programming?
How objects are stored in java?
Can the garbage collection be forced by any means?