Is String part of the core Java language?

Viewed 95

Is the String class part of the core java language?

My teacher said I am only allowed to use the String class for my assignment if it is part of the core language that I am using.

Since I am using Java, is using the String class allowed?

2 Answers

Yes.

The String class is mentioned in the Java Language Specification (JLS), which is the document that defines the Java language.

It is mentioned in JLS § 4.3.3.


The term 'core language' is not a term which has an established definition in Java.

Yes, It's a class-based Type, not a primitive as char or int

Related