• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class loading

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppost I have the following code and MyClass is in the classpath
Could anyone please tell me
1. MyClass loaded
2. Memory allocated for MyClass
3. Object c1 created
When these 3 step happend? (1 and 2 together or 2 and 3 together or they all separted)
Thanks a lot
public class Test {
public static void main(String[] args) {
MyClass c1 = null;
MyClass c2 = null;
//other stuff

c1 = new MyClass();
c2 = new MyClass();
}
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic