Q) Explain about Boolean data type? A)In “c” language to represent “false” zero is used. Non-zero represent true. In java , to represent logical “true” and “false“ separate data type is given which is “Boolean “ type.Ex: Boolean b=false;Or Boolean b=true; Share Get link Facebook X Pinterest Email Other Apps Labels Java Theory Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment