Boolean to Boolean conversion (implicit)
The boolean data type considers  only two possible values: true and false, one condition either true or false.

package ch4_package;
import java.io.*;
public class Test_This {
public static void main(String[] args) throws IOException
{
// TODO Auto-generated method stub
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str = "";
try{
System.out.println("---While Loop---");
System.out.print("Please enter your age: ");
str = br.readLine();
int n =Integer.parseInt(str);
int i=12 ;
byte b;
boolean max, senior;
max = (i <= n) ? true : false;
senior = max;
if (senior){
System.out.println("You are allowed in this ride: ");
}

else
{
System.out.print("sorry you cant' go in ths ride: ");
}
System.out.println();
}//try
catch(NumberFormatException e) { System.out.println("data was blank");}

}

}

 

The above is an implicit conversion of Boolean to Boolean conversion