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 core java used for?
Tell me the latest versions in java related areas?
Is the empty set a singleton?
What is the need of transient variables in Java ?
Can constructor be inherited?
What are the two environment variables that must be set in order to run any java programs?
What does void * mean?
What is the function of http?
What is null mean in java?
What is the base class in java from which all classes are derived?
What is garbage collector?
What is regex in java?
What are the important features of Java 11 release?
What do you mean by singleton class in java?
What is broken and continue statement?