Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

bhadule bhadule

Greenhorn
+ Follow
since Sep 11, 2005
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 bhadule bhadule

Hi all,

Thanks for all your compliments.

Actually I fill sun exams are very easier than what we solve in Whizlab simulators or Enthuware simulators.

One thing I want to say is that read any one book thoroughly. I read Khalid Mughal Book.Its very nice.

Another thing is that I solved danchislom mock tests. Before going to the exam you must go through these mock tests. Also I solved Enthuware simulator.

After reading chapters prepare your notes what to remember. Then u don�t have to read the book again and again. Try to understand the concepts don�t mug up it.

Thanx and Regards
Hrushi
16 years ago
Hello Ranchies,
Today i cleared the scjp1.4 with 86%. thanx to all of u. I found really a great experience with this forum. Lots of concepts i got from this forum.

Thanx & Regards
Hrushi
16 years ago
hello ranchies,
can anybody plz explain me, what is class lock?...how it is different from object lock......

i read that when we make instance method synchronized then by calling to this method we get the object lock and no other object have acces to other synchronized method.....

So my question is what happens when we call static synchronized method.....?

i read that we get the class lock...so what is that actually...?

Regards
Hrushi
:roll:
Hello Ranchies,
can anybody plz explain me the difference between synchronized methods and synchronized blocks...i am reading the Khalid Mughal book, but it finds me difficult.....

Regards

Hrushi
Hello Ranchies,
can anybody plz explain me the concept of == operator .
i got confused...for bellow code my answer was false,true,true....
but it is returning true,true,true..... i think valueOf() returns the
instance of invoking wrapper type...

plz help me?...

public class Test5{


public static void main(String[] args){


Boolean b1 = Boolean.valueOf(true);
Boolean b2 = Boolean.valueOf(true);
Boolean b3 = Boolean.valueOf("TrUe");
Boolean b4 = Boolean.valueOf("tRuE");
System.out.print((b1==b2) + ",");
System.out.print((b1.booleanValue()==b2.booleanValue()) + ",");
System.out.println(b3.equals(b4));
}

}

Regards
Hrushi
Hi A Kumar,
i read the article and i got the statement...


An explicit constructor invocation statement in a constructor body may not refer to any instance variables or instance methods declared in this class or any superclass, or use this or super in any expression; otherwise, a compile-time error occurs.

but why this is not allowed?
sorry vidya sagar,
my default constructor is calling to the one argument constructor by the this keyword....what's wrong with this?....

Regards
hrushi
Hello Ranchies,
can anybody plz explain me why this bellow code is not getting compile?


public class Test19 {
float f;
Test19(){
this(f);
f = 3;
}
Test19(float f){
System.out.println(f);
}
public static void main(String args[]) {
Test19 t = new Test19();
}
}


Regards
Hrushi
Hello,
can any body explain me why the output of this coming out only "same values"...
because what i read is that JVM creats a pool memory for x1 ,x2 and for "c"...
After concatenation the resulting value of x2 is same as that of reference x1 i.e "abc"

so why the comparision is giving false result....


public class Simple {

public static void main(String[] args) {
String x1 = "abc";
String x2 = "ab";
x2=x2+"c";
System.out.println(x2);

if ( x1 == x2 )
{ // comparing reference vars
System.out.println("reference comparision");
}

if ( x1.equals(x2) ) { // comparing values
System.out.println("same values");
}

}
}
Regards
Hrushikesh
16 years ago
hello,
i m using JSTL........and i m getting this error.......can any body help me..........i have copied latest standard.jar and jstl.jar

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Zhtml>
<head>
<title>Count to 10 Example (using JSTL)</title>
</head>

Zbody>
<c:forEach var="i" begin="1" end="10" step="1">
<cut value="${i}" />

<br />
</c:forEach>
</body>
</html>




I ,am getting error here only


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

Validation error messages from TagLibraryValidator for c
null: java.lang.IllegalStateException: can't declare any more prefixes in this context



i m using tomcat 5.0 and jdk 1.4.2



Regards
Hrushi
16 years ago
JSP