Win a copy of Fixing your Scrum this week in the Agile forum!

vb shah

Greenhorn
+ Follow
since Jan 09, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vb shah

Hello friends,
i am facing one problem with jboss4.2.1...my client is running on some other machine and jboss server is running on some other machine, while i am trying to run the application deployed in server, it is giving me the error like "server <host addr> is not running on port 8080" though the jboss server is running on that ip address and on the 8080 port..
the same thing is running perfect on jboss 4.0.5 but not in jboss4.2.1

is there any change in configuration file?
13 years ago
Runnable implies that "Ready to Run."
Looks like none...
They have to have same name(case sensitive) to be overloaded.
Isn't It Java Gurus?
class MyClass {
public static void main(String[] args) {
final int i =200;
char c = i;
System.out.println(c);
}
}
This will compile in jdk1.3, note final.
They are not visible outside of class/member or there scope; How you will?
public class MyClass{
public static void main(String argv[]){
MyClass Obj1;
vbClass Obj2;

Obj1=new vbeClass();
Obj2=new vbClass();
//Obj1.abc();
Obj2.abc();
Obj2=(vbClass) Obj1;
//Now it is vbclass
//earlier it was vbeclass;same results
Obj2.abc();// How it is giving vbeClass->abc
}


}
class vbClass extends MyClass{
void abc(){System.out.println("vbClass->abc");}
}
class vbeClass extends vbClass{
void abc(){System.out.println("vbeClass->abc");}
}
Obj2.abc(); ==>> Output is vbeClass-abc
How ???
Any Help::
See the code:
public class MyClass{
public static void main(String argv[]){
MyClass Obj1;
vbClass Obj2;

Obj1=new vbeClass();
Obj2=new vbClass();
//Obj1.abc(); //Commented Line
Obj2.abc();
Obj2=(vbeClass) Obj1;
Obj2.abc();
}
}
class vbClass extends MyClass{
void abc(){System.out.println("vbClass->abc");}
}
class vbeClass extends vbClass{
void abc(){System.out.println("vbeClass->abc");}
}
if you uncomment commented line, it is a compiler error. It means Obj1 don't have abc available.
How following statement is giving output as "vbeClass->abc"?
Obj2=(vbeClass) Obj1;