C# String Theory—CSharp vs. Java: Strings

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:Articles
C# Articles

C# String Theory

edit

C# versus Java language: Strings

Modern programming languages must be able to combine textual and numerical data with relative ease in order to build HTML, SQL, or XML programmatically on the fly. Both C# and Java language support string concatenation in a natural manner with an overloaded plus (+) operator which can convert most non-string types to strings. The string handling APIs of both languages share a common set of features.

Differences between Java and C# - String

  • A Java String always has an upper case S.
  • There is no verbatim string in the Java language.
  • There is no equivalent of the Java StringTokenizer in C#. Instead, use the Split function to parse a string into an array of strings based on a delimiter.


Previous_Page_.gif Next_Page_.gif


Personal tools