Hi! I am trying to deploy a war file and getting error "Deployer service failed to deploy "warfile locations"* Urecognised deployment.
It's working fine when I don't have the application as war file.I am having the above problem only when I try to deploy as a war file.I am using JRun4.Can anybody help pl! Thanks
Thanks a lot for the detailed explaination.How about the following? Animal a = new Animal(); Cat c=new Cat(); c=(Cat)a; Will the above passes the runtime?Can an animal be casted in to a cat?Please let me know.Thanks
Sometimes casting up the inheritance tree gives runtime error.Can anybody explain actually when it will give runtime erro during casting and when will it not? subclass=(subclass)superclass- will it give runtime error? [ May 25, 2004: Message edited by: Barry Gaunt ]
For the following code, the answer given is 121212 class JMM110 { public static void main (String[] args) { int j = 0; do for (int i = 0; i++ < 2 System.out.print(i); while (j++ < 2); }}
Can anybody pl explain?Thanks [ May 22, 2004: Message edited by: Barry Gaunt ]
Hi! The double data type can accept an int rite? double d=0x10 Why the following gives a run time exception?Can anybody pl explain?Thanks. Double d1 = new Double("0x10"); [ May 22, 2004: Message edited by: Barry Gaunt ]
Hi! When I compile the following code I get the value as 1 public static void main(String[ ] args) {
int k=0; k += ++k; System.out.println(k); } As per my understanding, bec's of operator precedence k becpomes 1 first and now k holds the value of 1 and then when we say k+=1 which is k=k+1(1+1) is 2.Why is it giving 1?Can anybody please explain.Thanks [ May 18, 2004: Message edited by: Barry Gaunt ]