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

What is tail recursion in scala?

1 Answers  


Why is scala faster than java?

1 Answers  


Like Java’s java.lang.Object class, what is the super class of all classes in Scala?

1 Answers  


Explain how to create arrays?

1 Answers  


Mention the difference between an object and a class ?

1 Answers  


What is Scala anonymous function?

1 Answers  


What do you mean by trait in scala and when it is used?

1 Answers  


How Scala supports both Highly Scalable and Highly Performance applications?

1 Answers  


What is the use of tuples in scala?

1 Answers  


What does listmap in scala?

1 Answers  


Is scala good for machine learning?

1 Answers  


What is a closure?

1 Answers  


Categories