Results 1 to 3 of 3
  1. #1
    javanew is offline Member
    Join Date
    Mar 2010
    Posts
    49
    Rep Power
    0

    Default String quizes here please

    People and members , i want to enhance and my knowlege in Strings...
    Please every1 insert a small quiz here and tricky questions and we try to answer it all,,,,,
    :confused::confused::confused
    Strings
    StringBuffer
    please !!

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    for detailed informations look first

    StringBuffer (Java 2 Platform SE 6.0)
    StringBuilder (Java 2 Platform SE 6.0)
    String (Java 2 Platform SE 6.0)

    if you have questions after reading these articles feel free to ask.

    in general, if you have a lot of modifications to strings then its better to use a StringBuilder or a StringBuffer. the difference between StringBuilder and StringBuffer is that the StringBuffer methods are synchronized.
    Last edited by j2me64; 04-01-2010 at 11:42 PM.

  3. #3
    wangwei is offline Member
    Join Date
    Apr 2010
    Posts
    10
    Rep Power
    0

    Default

    Hi, here are the questions, plz write the answers by using 'QUOTE' my post:
    1. System.out.println("2" + 3); // Output what?
    2. System.out.println(2 + '3'); // Output what?
    3. System.out.println(1 + '2' + "3"); // Output what?
    OK, today is these, answer these questions before run it on your PC.
    Good luck!

Similar Threads

  1. Replies: 7
    Last Post: 11-03-2009, 03:18 AM
  2. combine string[] into string like perl's join function
    By tekberg in forum Advanced Java
    Replies: 9
    Last Post: 02-23-2009, 02:05 PM
  3. Replies: 5
    Last Post: 01-11-2009, 11:12 AM
  4. Replies: 0
    Last Post: 11-20-2007, 05:59 PM
  5. Replies: 1
    Last Post: 08-03-2007, 11:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •