Archive | September 18th, 2008

What is Adobe Flex?

September 18, 2008

0 Comments

Flex is a programming language developed on adobe technology to enhance the users capability in building rich internet applications. This latest adobe technology possesses all flash features. Flex is embedded with two languages MXML and Action Script respectively. Among all known scripting languages Action Script is one of them that comes along with Flex. Adobe [...]

email

Mixing Generics And Non-Generics Code

September 18, 2008

0 Comments

If we are work on code that uses generics that is fine and what will happen if we want to mix both generic and non generic code. Consider below Animal class 1 2 3 4 5 class Animal{ public String toString() { return "Animal"; } } if we create the list like below will it [...]

How to use ? extends in Generics?

September 18, 2008

0 Comments

In generics as we know we can not assign subclass generic type to super class generic type, for example 1 List<animal> list = new ArrayList<dog>(); will not compile even though Dog IS-AN Animal. the reason for this is already explained in generics basics section. How can we solve this particular problem????? we can solve this [...]

Using ? super in generics – Java 5.0

September 18, 2008

0 Comments

As we know we can not add any value except null to collection if we use ? extends syntax. What if we want to add value to the collection, then we have to use ? super syntax. the code looks like this. 1 List<? super Dog> list1 = new ArrayList<dog>(); before discussing why it is [...]