Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
Explain the difference between val and var in Scal...
1.
Explain the difference between val and var in Scala?
Answer»
S.no
Val
Var
1.
Refers to value
Refers to variable
2.
Is constant
Is changeable
3.
Immutable
DECLARATION
of variables
Mutable declaration of a variable
4.
Cannot
REASSIGN
VALUES
once
CREATED
Reassign values once its created
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What is Scala and why it is used?
What is the diamond problem in scala?
What do you mean by Foldleft in Scala?
Explain Operator and explain types of Operators in Scala?
Explain data types in Scala?
What is currying in Scala?
What is Scala closure?
What are higher-order functions in Scala?
What is lambda expression in Scala?
Explain different types of identifiers in Scala?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies