Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How static class variables get initialized
#1
Code:
Java Syntax (Toggle Plain Text) 1. public class MyClass{ 2. public static HashMap<String,Buddy> buddiesMap= new HashMap<String,Buddy>(); 3. public static ArrayList<String> buddiesList=new ArrayList<String>(); 4. public static HashMap<String,ImageIcon> avatarMap=new HashMap<String, ImageIcon>(); 5. public static ServerConnection con=new ServerConnection(); 6. 7. public MyClass(){

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Java can not find main class or can not find jvm.dll Xpert 0 1,161 06-24-2011, 07:50 AM
Last Post: Xpert
  Class design question 2011 Vuhelper 0 1,860 06-04-2011, 10:43 PM
Last Post: Vuhelper
  what is the difference between Static method and the method we write in Clas saneha 1 4,760 04-28-2011, 09:12 PM
Last Post: Vuhelper
  Why getCountStudent() method is called using Class Name instead of first making new saneha 1 5,904 04-28-2011, 09:10 PM
Last Post: Vuhelper
  Differentiate between static and nonstatic members in java 2011 saneha 1 2,467 04-27-2011, 11:03 PM
Last Post: Vuhelper
  AddressBookTest Class is giving error in java 2011 saneha 1 2,123 04-27-2011, 10:46 PM
Last Post: Vuhelper
  Why it is not working "CmdLineArgsApp.class" saneha 1 2,687 04-24-2011, 08:31 PM
Last Post: Vuhelper
  What does constructor do in class?Why we use copy constructor in class. Is it necessa saneha 1 2,438 04-24-2011, 06:40 PM
Last Post: Vuhelper
  Sir how can we make java ".class" file as .exe file. So that we could run it directly saneha 0 5,809 04-24-2011, 05:57 PM
Last Post: saneha
  we can not call the non static methods from a sttic methods is it true statement?? saneha 1 2,650 04-24-2011, 05:54 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)