Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #11810

Re: Escape character for single quotes. Is it really required in String?

From Mausam <mausamhere@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Escape character for single quotes. Is it really required in String?
Date 2012-02-07 04:29 -0800
Organization http://groups.google.com
Message-ID <2362811.69.1328617748528.JavaMail.geo-discussion-forums@pbcjq2> (permalink)
References <93e3af31-e4d8-43df-9c03-9645b6885d1e@l16g2000vbl.googlegroups.com> <BoednbdHwOXVlqzSnZ2dnUVZ8kudnZ2d@giganews.com>

Show all headers | View raw


On Tuesday, 7 February 2012 17:00:16 UTC+5:30, Leif Roar Moldskred  wrote:
> Mausam <mausamhere@gmail.com> wrote:
> 
> > How the two string is different? And when should I use escape
> > character for single quote?
> 
> In character literals.
> 
>   char apostrophe = '\'';

Thanks. For char it makes sense. But then my understanding that this escape character does not make any difference when used in String is correct.


> 
> -- 
> Leif Roar Moldskred

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Escape character for single quotes. Is it really required in String? Mausam <mausamhere@gmail.com> - 2012-02-07 03:14 -0800
  Re: Escape character for single quotes. Is it really required in String? Mausam <mausamhere@gmail.com> - 2012-02-07 03:18 -0800
  Re: Escape character for single quotes. Is it really required in String? Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-02-07 05:30 -0600
    Re: Escape character for single quotes. Is it really required in String? Mausam <mausamhere@gmail.com> - 2012-02-07 04:29 -0800
      Re: Escape character for single quotes. Is it really required in String? Knute Johnson <nospam@knutejohnson.com> - 2012-02-07 10:28 -0800
  Re: Escape character for single quotes. Is it really required in String? Lew <lewbloch@gmail.com> - 2012-02-07 11:11 -0800

csiph-web