overriding happens in runtime, overloading happens in compile-time.Static methods are class properties and they are handled in compile-time.So, static methods cannot be overridden.Try writing some...
Type: Posts; User: dextr
overriding happens in runtime, overloading happens in compile-time.Static methods are class properties and they are handled in compile-time.So, static methods cannot be overridden.Try writing some...
You are using Eclipse IDE ? Right click on that src folder and create your own packages..If that does not answer your question then probably I am not getting your question ?
List<Object> list = new ArrayList<Object>();
list.add(new Integer(1));
list.add(new String("Tom"));
System.out.println(list);
I really dont know why I'm writing this..kind of defeats the...
you should be using a database for doing that.Yes, using serialization, you can write the byte stream to a file, but that is not exactly the purpose of serialization.If you indeed want to use a file...
HashMap does not allow duplicate keys.It allows at max one key with null value.