Boolean.TRUE: This method is available in the java.lang.Boolean class of Java.
Syntax:
Boolean java.lang.Boolean.TRUE
The Boolean object corresponding to the primitive value true.
Approach
Java
public class BooleanTrue {public static void main(String[] args) {System.out.println(Boolean.TRUE);}}
Output:
true
No comments:
Post a Comment