Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > identifier expected error

Reply
Thread Tools

identifier expected error

 
 
manoj212077 manoj212077 is offline
Junior Member
Join Date: Sep 2009
Posts: 5
 
      09-06-2009
i have error in line no.3 and 7 ....
class A {
int i;
i = 8;
}
class B extends A{
int i;
i = 76;
void add(int a) {
int i;
i=a;

System.out.println("value of

i"+super.i);
System.out.println("value of

i"+this.i);
System.out.println("vaue of i="+
i);
}
}
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD Error: "Expecting '.', identifier or quoted identifier withmultiple tables. S_K ASP .Net 0 08-06-2008 09:22 PM
How can I fix the warning C4786 'identifier' : identifier wastruncated to 'number' characters in the debug information...? babakandme@yahoo.com C++ 2 12-11-2007 08:17 PM
identifier not found error, undeclared identifier aarthi28@gmail.com C++ 2 02-26-2007 02:11 AM
expected identifier error barry ASP .Net 6 12-25-2005 05:10 AM
Trying to declare identifier locally and hide a file scope identifier Kobu C Programming 7 02-25-2005 05:19 AM



Advertisments