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

what is the output???????

public class multireturn
{
public(int assign x ( int x)
{
if(4==x)
{
return 7;
}
else if (7=x+3)
{
return 6;
}
return 5;
}
}

Answer Posted / pranali bhise

It will result in Compile time error due to 3 reasons
1) The parenthesis '(' after public is not allowed.
2) The space between "assign" and "x" is not allowed
3) 7 = x + 3 is not allowed as a variable is needed on the
left hand side of the assignment operator.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does \ mean in regex?

1320


What are byte codes?

1298


What is difference between final and immutable?

1217


What is structure of java heap? What is perm gen space in heap?

1185


Do you know why doesn't the java library use a randomized version of quicksort?

994


Can a main method be overloaded?

1071


Does java arraylist maintain insertion order?

1052


What is the purpose of void class?

1109


what is recursion in java

1250


Why do I need to declare the type of a variable in java?

1154


What is thread count in java?

1056


Implement a stack with push (), pop() and min() in O(1) time.

1161


What is the purpose of skeleton and stub?

1353


Why heap memory is called heap?

1093


Explain about main thread in java?

1146