Variables - pass by value or reference

Hi, just a quick question to understand how the variable system works in UiPath… Are all variables passed by value or are there some cases where references are used?

String a = “Test1”
String b = a
a = “Test2”
b = ?


Here the value of b will be test1 only as it works by passed by value logic. Attaching a sample workflow for your reference.

Shiva KathikReference.xaml (4.7 KB)