English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-02-25 12:55:58 · 2 answers · asked by francklin2006 1 in Computers & Internet Programming & Design

2 answers

There is a Boolean class in java in (include java.lang.Boolean). The Boolean class wraps a value of the primitive type boolean in an object. An object of type Boolean contains a single field whose type is boolean.

In addition, this class provides many methods for converting a boolean to a String and a String to a boolean, as well as other constants and methods useful when dealing with a boolean.This class implements the interface serializable.

The class has two constructors
1>Boolean( boolean value)
2>Boolean(String s) s can be either "true" or "false"

2007-02-25 13:43:40 · answer #1 · answered by Anonymous · 0 0

boolean keyword, what is your question?

2007-02-25 13:31:48 · answer #2 · answered by Andy T 7 · 0 0

fedest.com, questions and answers