JAVA Type Casting Typecasting allows us to convert one data type into another. In Java language, we use the cast operator for typecasting which is denoted by (type). Syntax:- (type_name)value; EXAMPLE: public class Learner{ public static void main(String[]args) { float f= (float)9/4; System.out.println(f); } } February 3, 2022 by Learn2Done JAVA