mirror of
https://github.com/friuns2/BlackFriday-GPTs-Prompts.git
synced 2026-04-30 22:13:55 +07:00
Added new GPTs for Black Friday
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
|
||||
[]()
|
||||
# String as object
|
||||
Create prompt to illustrate whether a String is being treated as an object in Java.
|
||||
|
||||
# Prompt
|
||||
|
||||
```
|
||||
Is String is treated as an object in Java?
|
||||
```
|
||||
|
||||
## Conversation
|
||||
|
||||
**ASSISTANT**: Yes, in Java, a String is treated as an object. It is an instance of the class `java.lang.String` and has access to methods and properties provided by that class.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user