• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCP Questions....Help

 
Mukesh Poddar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can Anyone help me out in getting the JCP question form the Internet.....

Since However good you are at the concepts but still you require some practice to become perfect and clear your concepts.My understanding is whether you are exprienced or Non. experienced The problem that comes in the exam is Quite diffrent from your Development work...

Please help in this....

OR an somebody start posting atleast some questions....
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of mock exams in the Internet, you could find them by simply searching in the net.

Marcus has written one mock exam, you might try:
http://www.examulator.com/

In addition, we will not post any materials with copyrights or without the agreement from the owner in here.

Nick
 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK Mukesh ,
Solve my this doubt :



why this code is giving error , as you may know that inner class has access all the members of outer class .

thanks in advance .
 
Swapan Mazumdar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refering to problem put up by Pooja,
I think that even if inner class can access enclosing class' member variable, in your case inner class has no idea that i ever exist and so it can't be initilized.

Looking at the two scenarios below will be helpful to explain:

Please comment,


( tags added)
[ January 14, 2005: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The i = 10; is an executable assignment statement and it cannot go where it is written.

However, putting it in a method works as the above shows. You can also put it in an instance initializer block like this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic