In Java objects are created on the heap using the
NOTE: C# also supports stack-based classes, called value types.
new
keyword. Most classes in C# are created on the heap by using the new
keyword. Also just as the JVM manages the destruction of objects so also does the CLR via a Mark and Compact garbage collection algorithmNOTE: C# also supports stack-based classes, called value types.
No comments:
Post a Comment