What is the default value for string in java?
NO SPAMMING
TOMORROW'S MY COMPUTER EXAM.
Anonymous:
Null or " "
Answers
Answered by
4
Hey!
Here is your answer.
The default value for string is null.
More precisely, it can be written as two empty double quotes with a space in between.
Like - " "
Hope it helps^^
Please mark as brainliest :)
Here is your answer.
The default value for string is null.
More precisely, it can be written as two empty double quotes with a space in between.
Like - " "
Hope it helps^^
Please mark as brainliest :)
Answered by
2
the default value for instance static variables are the same and depends on the type :object type (string,intege,boolcan and others);initialized with null primitive type byte , short int , long:0
add brainlist
add brainlist
Attachments:
Similar questions