
In C# out keyword is used while passing some arguments by reference. Out is somewhat similar to ref keyword. The only difference is that ref requires variable that needed to be passed. Both out and ref are not available in Java but codeporting C#2Java engine intelligently use java arrays where values are sent by reference. This perfectly imitates the functionality of the out and ref keywords.