hi, there's no " " around null...
just Manager mgr = null; Thanks XH On Wed, Mar 18, 2009 at 12:31 PM, JAaronAnderson.com <acompetitorschalle...@gmail.com> wrote: > > I am trying to discern another programmer's code (good luck I know) > > In a class that tests connectivity to a datasource, the first line > after the try { opening up is a statement that I am not clear on. > > it is like this > import model.Manager; > public class DataSourceConnectionObject { > public static void main(String[] args) { > try { > Manager manager = "null"; > > is this setting a new object of Manager named "manager" and setting it > to null ? > it this the same as if manager = new Manager and set manager =null on > second line? > > just making sure its not doing something else... > thx > > > > -- Best Regards, Xiaohang Yin xiaohang....@gmail.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---