Online Java Compiler By
JavaTpoint.com
//import statement import java.lang.reflect.Method; import java.math.BigInteger; public class ReflectMethodisBridgeExample1 { public static void main(String args[]) { try { Class num = BigInteger.class; Method[] mthd = num.getMethods(); System.out.println("Bridge Methods are"); for (Method mthd2 : mthd) { if (mthd2.isBridge()) { System.out.println("Method: " + mthd2.getName()); } } } catch (Exception e) { e.printStackTrace(); } } }
Output