• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

class loading

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();
Just the other day, I was thinking ... about this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic