Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
VB.NET
Perl
COBOL
Pascal
FORTRAN
BASIC
Ada
C++
Scala
ASP.NET
 C
 :) Hot Jobs
 
 :) Latest Articles


  

 


Different types of variables in Scala explain them?
Question Posted on 26 Feb 2021

Home >> Programming Languages >> Scala >> Different types of variables in Scala explain them?




Different types of variables in Scala explain them?
There are mainly two types of variables in Scala which are given below
(1)Mutable Variables
(2)Immutable variables
(1)Mutable Variables:-
(i)Mutable variable are declare by using the "var" keyword.
(ii)And the values in Mutable variables support changes.
(2)Immutable variables:-
(i)Immutable variables are declare by using "val" keyword.
(ii)And the values in Immutable variable do not support changes.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
what is use of Tuples in Scala?
Syntax to Append single and multiple data element in list in Scala?
Difference between Java, Scala, Python and R
Define Closure in Scala with example?
Different types of variables in Scala explain them?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |