rimzim sinha

+ Follow
since Oct 26, 2004
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by rimzim sinha

Can someone please suggest a good online tutorial/book for junit?
19 years ago
what is the error u get?
19 years ago
In my project , ihave 5 sperate jsps..which the user has to go through one by one ..in the end all the data(his selection in all 5 jsps) should be submitted..

what is the best method to pass information between jsp
1.session variable?
2.url rewriting?

19 years ago
what is the limit (if there is any) to length in the string afer URL rewriting?

19 years ago
Thanks did everything but I am getting this error

java.lang.UnsupportedClassVersionError: HelloServlet (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1643

Any Suggestions..?
I m using jdk1.5

19 years ago
Thanks but what about web.xml..where shud it sit?
19 years ago
Can some one please tell me the directory structure ..i.e. where do we keep servlets , jsp & htmls of an application & how do we call the servlet
19 years ago
Thanks for clearing my concepts!
question from http://www.geocities.com/sunjava_scjp/Mock2.html

Why is the output "String Buffer added" when String Buffer is assigned "Hai"
in the last line?

Pls explain
[ November 08, 2004: Message edited by: Barry Gaunt ]

I am not able to understand why Byte b1= new Byte(1); line generates an error..
Pls explain what am I missing..

Also , I wud like to know how to identify double & float value;
is it that only if explicitly specified 10.0f it is a float,else 10.0 is a double

May be what i m asking is too simple..pls excuse

public class Test12{
public static void main(String a[]){
byte b = 100;
Byte b1= new Byte(1);
Byte b2 = new Byte(b);
System.out.println(b1 == b2);
Even if i assign is to a variable as given belowe ,we dont get an error;
Can some one please explain a little more?

class test{

static byte m2(short s) {return 42;}//line 3

public static void main(String [] args){
byte x = m2((short)1);
System.out.println(m2((short)1)); // line 6
Why does a1.equals(b1) in the following code evaluate to false when contents are equal?
When do 2 stringbuffers .equal return true?

class C {
public static void main (String[] args) {
StringBuffer a1 = new StringBuffer ("red");
StringBuffer b1 = new StringBuffer ("red");
Hope this helps!!
The compiler creates the default constructor if you have not provided any other constructor in the class. It does not take any arguments. The default constructor calls the no-argument constructor of the superclass. It has the same access modifier as the class.

However, the compiler will not provide the default constructor if you have written at least one constructor in the class

. Constructor can be overloaded, but they are not inherited by subclasses.
Like methods in subclass override methods in superclass, what happens to the variables in subclass when redefined in superclass?

Is there any concept of overriding variables?