+ 5

Can any one explain me about strings and booleans?

in brief

23rd Apr 2017, 4:53 AM
kishor rai
kishor rai - avatar
3 Answers
+ 6
String is text variable and boolean is logical variable.
23rd Apr 2017, 4:59 AM
Nithiwat
Nithiwat - avatar
+ 3
There are two values in boolean, "true" and "false". but in the case of String you can enter any thing as String(even numbers),example: String c= "Cool"; String c="5";
23rd Apr 2017, 5:07 AM
Saikat Mukherjee
Saikat Mukherjee - avatar
+ 1
string is array of characters... while boolean is data type which holds true or fase
23rd Apr 2017, 5:07 AM
Mayur Chaudhari
Mayur Chaudhari - avatar