Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'apply' method in Scala?
Answer: The 'apply' method is a special method in Scala that is invoked when an object is called like a function. It is often used to create objects without using the 'new' keyword.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook