Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

without using arthematic operation ,how can you write the
logic for adding/substraction/multiplication?

Answer Posted / ashwinkumar

int a = 10;
int b = 5;
int sum = BigInteger.valueOf(a).add(BigInteger.valueOf(b)).intValue();
int sum1 = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)).intValue();
int sum2 = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)).intValue();

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are measurable parameters?

1015


What is an array in java?

1128


What are the important features of Java 10 release?

955


What is scanner in java?

910


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

932


What are sets in java?

890


Write a program in java to establish a connection between client and server?

927


What is meant by interface?

1016


How do you check if an arraylist is not empty?

1057


Define max and min heap, also the search time of heap.

989


What is the buffer limit?

983


How do you check if a string contains only numeric digits?

1068


What are the two ways in which thread can be created?

1003


Explain the overview of UDP messaging.

1083


Can set contain duplicates?

957