Search:

Type: Posts; User: dextr

Search: Search took 0.09 seconds.

  1. Thread: static method

    by dextr
    Replies
    6
    Views
    1,229

    Re: static method

    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...
  2. Replies
    5
    Views
    1,055

    Re: To creating user defined packages

    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 ?
  3. Re: Is it possible to add only String and Integer to ArrayList(Must be generic) by using JAVA GENERICS

    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...
  4. Replies
    2
    Views
    1,068

    Re: Help me with ideas

    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...
  5. Replies
    8
    Views
    2,731

    Re: Want to Add Duplicate Key in HashMap

    HashMap does not allow duplicate keys.It allows at max one key with null value.
Results 1 to 5 of 6