Saturday 15 January 2011

java - Understanding some concepts -


I am new to Java and am trying to understand the following piece of code.

  public squares foo bar & lt; Type, Type 2 & gt; {@Override public SomeFoo & lt; Type, Type 2 & gt; GetReader (type type) throws IOException {back to something new difference (type); }}   

I am trying to understand what is public SomeFoo .

Is not this a class ?? This is a constructor .. Why does it give something?

When will I

  Phu Bubar = New Foo ()   

Phupar What will happen

and bar; Type, Type 2 & gt; What will happen? Why do we use these arrow brackets?

Public SomeFoo & lt; Type, Type 2 & gt; GetReader (type type) is a legacy method from a bar class, we know that it is due to the use of extension in class definition bar inherited from

Phu buzzar = new foo () is the means of referencing the object, foo object and foobers creates.

parenthesis & lt; & Gt;

Like others, I would recommend them to read here

No comments:

Post a Comment