package ch4_package;

import java.io.*;
//import java.util.Scanner;
import java.math.BigInteger;
public class Test_This {
public static void main(String[] args) throws IOException
{
Process pp = new Process();
try{
pp.read_file();
}//try
catch(NumberFormatException e)
{ System.out.println("data was blank");}
}
}
class Process extends Test_This{
boolean b, b2 ; String x="";
public void read_file()throws IOException
{
String t_string = getClass().getName() + '@' + Integer.toHexString(hashCode());
System.out.println("package-name.current.class@address :\t " + t_string);
String str1= getClass().getName();
String str2= getClass().toString();
boolean b= (getClass().isLocalClass());//get true or false to boolean
// getClass().getClassLoader();
System.out.println("---------Booelan to String -----------");
String str3 = ( (b? "true":"false").toString());//will work too
System.out.println( "Will work too :\t\t\t\t " + str3 );
System.out.println("On the flye check:\t\t\t " + (x = ((getClass().isLocalClass())? "true":"false" )));
String x2 = ((getClass().isMemberClass())? "true":"false" );
System.out.println("Bool to string local Class ?\t\t " + (b? "true":"false").toString() );
System.out.println("isMemberClass())? :\t\t\t " + x2);
System.out.println("------------------------------");
System.out.println("Using String getclass().getname():\t " + str1);
System.out.println("getClass().toString() :\t\t\t " + str2);
System.out.println("getClass().getClassLoader()> " + getClass().getClassLoader());
System.out.println("getClass().getClassLoader().tostring()> " + getClass().getClassLoader().toString());
}
}