Java,Java EE,Open Source

This forum is a soundboard to discuss, brainstorm and share ideas/solution on Java, Java EE and Open source technologies and frameworks
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

Share | 

 Dynamic variable in java

Go down 

Posts : 9
Join date : 2009-11-09

PostSubject: Dynamic variable in java   Thu Nov 19, 2009 10:06 pm

My interview asked what is dynamic variable in java and where we use them.
Back to top Go down
View user profile

Posts : 10
Join date : 2008-10-03

PostSubject: Re: Dynamic variable in java   Tue Dec 01, 2009 8:27 am

apparently one can't create dynamic vars...use HashMap..e.g.

Map<String, DummyObject> container = new HashMap<String, DummyObject>();

for (int i = 0; i <10; i++)

container.put("obj" + i, DummyObject());

Back to top Go down
View user profile
Dynamic variable in java
Back to top 
Page 1 of 1
 Similar topics
» How Click on Dynamic Objects at Dynamic Positions in Selenium using for loop
» Creating the account (URL) globally and using that variable where ever it needed
» Locating dynamic IDs generated when a new Directory is created !
» Setting & getting variable values
» Verify command when used with Java,JUNIT and Eclipse

Permissions in this forum:You cannot reply to topics in this forum
Java,Java EE,Open Source :: Your first category :: Your first forum-
Jump to: