Consider the following code snippet
What is the result of the above code snippet?
A. Throws exception
B. Swap the value of the two variables
C. Flashes an error
D. Creates a new reference object
Answer: Option C
Solution(By Examveda Team)The above code snippet swaps the value of the two variables.
D. Classes and Interfaces
A. There is no difference
B. Functions are considered as fields
C. Variables are specific
D. Functions are values, and there is no hard distinction between methods and fields