Answer Posted / madhu
public class MainClass {
public static void main(String[] args){
ClassLoader classLoader = MainClass.class.getClassLoader();
try {
Class aClass = classLoader.loadClass("com.tech.MyClass");
System.out.println("aClass.getName() = " + aClass.getName());
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What about 'hostile applets'? : java security
Explain the reason for each keyword of public static void main(string args[])?
I get an exception if I remove the static modifier from main?
Where is java installed?
What are tags in java?
What is dto layer in java?
What are the advantages of lambda functions?
How do you find lambda?
What is the difference between the boolean & operator and the && operator?
How can the static main method use instance variables?
What is a delimiter in java?
How can c# app request minimum permissions? : java security
What does jpa mean?
Explain main thread under thread class execution?
Write a program for the problem: the array of inetegers indicating the marks of the students is given, U have to calculate the percentile of the students aaccording to this rule: the percentile of a student is the %of no of student having marks less then him. For eg: suppose Student Marks A 12 B 60 C 80 D 71 E 30 F 45 percentile of C = 5/5 *100 = 100 (out of 5 students 5 are having marks less then him) percentile of B = 3/5*100 = 60% (out of 5, 3 have markses less then him) percentile of A = 0/5*100 = 0%.