Search:

Type: Posts; User: Json

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    3,517

    Re: String Vs StringBuffer

    When you declare all your queries as statics they will of course take up memory like that but you will have a reference to the same strings so it will be dead quick.

    When you use the StringBuffer...
  2. Replies
    5
    Views
    3,517

    Re: String Vs StringBuffer

    I meant you should have a list of queries.



    private static final String QUERY1 = "select username,password,email from userstable";
    private static final String QUERY2 = "select * from...
  3. Replies
    5
    Views
    3,517

    Re: String Vs StringBuffer

    Usually you'd have a number of static queries I believe, so if I was you I'd create some static variables holding the constants for your queries.


    private static final String SELECT_ALL_USERS =...
Results 1 to 3 of 3