Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
    Bookmark Topic Watch Topic
  • New Topic

Please help  RSS feed

 
pravink chougule
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
**There was a qs with a character array being declared as a class member as :

Char ch[] = new Char[4] .

This was not initailized anywhere . But this was used to acess the fle data with a reader as follows :

While(ch = (int)out.read(ch) != -1){

Sysout´┐Ż.

}

the file contained abcdef

Answers:

1.)null

2.)aaaaaa

3.)abcdef

4.)abcdab

5.)ababc
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. It causes confusion and duplication of effort as the community tries to help everyone.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!