ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
The STRING TYPES is derived from the class
|
String.Value
|
|
String.System
|
|
System.String
|
|
System.Value
|
Explanation:
Detailed explanation-1: -Types of String Classes There are two types of character sequence classes in Java. The immutable class which is the String class, and the mutable class which is StringBuilder and StringBuffer. StringBuilder and StringBuffer have some differences. StringBuffer is thread-safe and synchronized.
Detailed explanation-2: -String is a class, so instances of it, like “apple”, are objects.
Detailed explanation-3: -String is a class in java and reference data type. String is a array of character so it is not a primitive data type.
Detailed explanation-4: -string is an alias in the C# language for System. String . Both of them are compiled to System. String in IL (Intermediate Language), so there is no difference.
There is 1 question to complete.