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
What is the difference between serial and throughput garbage collector?
What are anonymous inner classes?
What is the default size of set in java?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Why strings in java are called as immutable?
What is the use of http-tunneling in rmi?
Is assembly language a low level language?
Is java a super set of javascript?
What are multiple inheritances? Is it supported by java?
What is an example of a boolean?
How do you identify independent and dependent variables?
Write a program to check for a prime number in java?
What are different types of expressions?
What are packages in java?
Can main() method in java can return any data?