Here you can find the source of loadClass(Class> clazz)
public static void loadClass(Class<?> clazz)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Andre L. Santos.//from ww w. j a v a2 s. co m * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Andre L Santos - developer ******************************************************************************/ public class Main { public static void loadClass(Class<?> clazz) { loadClass(clazz.getName()); } public static void loadClass(String fullClassName) { try { Class.forName(fullClassName); } catch (ClassNotFoundException e) { e.printStackTrace(); } } }