Computer Science, asked by Anonymous, 1 year ago

What is the default value for string in java?
NO SPAMMING
TOMORROW'S MY COMPUTER EXAM.


Anonymous: Null or " "
subhradip4: uor ans
subhradip4: your answer smirti gupta

Answers

Answered by Anonymous
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 :)


Anonymous: Anytime :)
Anonymous: Well where is the answer of that girl??
Anonymous: she did answer my question...
Anonymous: Well I shall mark u as brainliest...
Anonymous: Thanks :)
Anonymous: I dunno where those answers disappeared :/
Anonymous: but the option for marking brainliest isn't coming up.... so I shall do it later on
Anonymous: OK I marked u as brainliest....
Anonymous: Thank u bhaiya...
Anonymous: Bhaiya nahi behen hun main :p
Answered by subhradip4
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
Attachments:

lovevaishu141: hiiiiiii
subhradip4: hii
Similar questions