can we add two numbers without using arthematic operators?
if possible how?
Answer Posted / satya
Hi we can add two number with out using arithemaic
operators.
just give
int a = 10;
int b = 5;
System.out.println("sum of a and b is :: "+(a|b))
| Is This Answer Correct ? | 10 Yes | 21 No |
Post New Answer View All Answers
What class allows you to read objects directly from a stream in java programming?
What is assembly language?
What is the concept of multithreading?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is contract between hashcode and equal method?
What is difference between array and vector?
What are the application of stack?
Is there any sort function in java?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
Why should we use singleton pattern instead of static class?
What is meant by class and object in java?
Where are variables stored?
What is Major and importance difference between for and foreach loop ?
How do you pass by reference?
How to reverse a string in java?