boolean isJavaFun = true;
boolean isFishTasty = false;
System.out.println(isJavaFun); // Outputs true
System.out.println(isFishTasty);
class HelloWorld {
public static void main(String[] args) {
Boolean isJavaFun = true;
System.out.print(isJavaFun);
}
}
class App {
public static void main(String[] args) {
// The boolean keyword is for creating a variable with boolean data type.
boolean result = true;
System.out.println(result);
}
}