Here you can find the source of newInstance(Class> clazz)
public static Object newInstance(Class<?> clazz)
//package com.java2s; /*/*from w w w. j a v a 2 s .c om*/ * Copyright 1999-2011 Alibaba.com All right reserved. This software is the confidential and proprietary information of * Alibaba.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only * in accordance with the terms of the license agreement you entered into with Alibaba.com. */ public class Main { public static Object newInstance(Class<?> clazz) { try { return clazz.getConstructor(new Class[0]).newInstance( new Object[0]); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } } }