Search:

Type: Posts; User: alieh

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    1,129

    Re: instantiation exception

    I have a code that has run before, but now i cant run it. i know there should be a way...

    --- Update ---

    HooRAY, I found the way



    package helloworld;
  2. Replies
    9
    Views
    1,129

    Re: instantiation exception

    ok, really Sorry




    package a;


    public class A {
  3. Replies
    9
    Views
    1,129

    Re: instantiation exception

    <code>
    package a;


    public class A {

    public A(){System.out.println("a constructed");}


    public class B{
  4. Replies
    9
    Views
    1,129

    Re: instantiation exception

    tnx for ur reply
    i used this code:
    public static void main(){
    outer o=new outer();
    inner i=o.new inner ();
    i=(inner)Class.forName("a.outer$inner").newInstance();
    }

    the error was...
  5. Replies
    9
    Views
    1,129

    instantiation exception

    i dont know how to create an instance of an inner class using classloader? here is my code in java.
    plz help. emergency question:-ss

    package a;
    public class outer{
    public outer(){}
    ...
Results 1 to 5 of 5