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...

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


Please Help Members By Posting Answers For Below Questions

What is core java used for?

1114


Tell me the latest versions in java related areas?

1088


Is the empty set a singleton?

971


What is the need of transient variables in Java ?

1068


Can constructor be inherited?

1030


What are the two environment variables that must be set in order to run any java programs?

961


What does void * mean?

1026


What is the function of http?

1028


What is null mean in java?

1085


What is the base class in java from which all classes are derived?

972


What is garbage collector?

1061


What is regex in java?

943


What are the important features of Java 11 release?

1109


What do you mean by singleton class in java?

904


What is broken and continue statement?

991