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 function parameter with a default value in scala?



What is the function parameter with a default value in scala?..

Answer / Kush Dhwaj Kumar

"Function parameters with a default value in Scala are parameters that have a default value provided if no argument is passed during function call. The syntax for declaring a function parameter with a default value is: def function_name(parameter1: DataType = defaultValue): ReturnType{

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

How to declare a function in scala?

1 Answers  


What does listmap in scala?

1 Answers  


Is Scala Statically-Typed Language?

1 Answers  


Is scala an oop?

1 Answers  


What is an Anonymous Function In Scala? What is a Function Literal in Scala? What are the advantages of a Anonymous Function/Function Literal in Scala?

1 Answers  


What is traversable in scala collection?

1 Answers  


what are the features of scala?

1 Answers  


What are the advantages of a anonymous function/function literal in scala?

1 Answers  


What is file handling in scala?

1 Answers  


Explain recursion through a program?

1 Answers  


How do you define a function in scala?

1 Answers  


What is apply method in Scala? What is unapply method in Scala? What is the difference between apply and unapply methods in Scala?

1 Answers  


Categories