Gurpreet Sachdeva

Ranch Hand
+ Follow
since Feb 20, 2001
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 Gurpreet Sachdeva

Hello Vikrama,
Thanks for your interest...
Regards
Gurpreet Sachdeva
Hello Vikrama,
I have given a comment on my site's MockExam page that my mock exams are little harder than that of real exam as my idea is to cover maximum points.This is what I am getting feedback from others also.
Regards
Gurpreet Sachdeva
I am very sorry for the inconvenience to the users of my site. This is to inform all of you that the URL of my site is changed from www.go4java.lookscool.com to www.go4java.cjb.net due to some technical problems I have been facing with lookscool.com
The new URL is www.go4java.cjb.net
Please support me this time...
Thankyou all...
------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.cjb.net
[This message has been edited by Gurpreet Sachdeva (edited December 11, 2001).]
Hello Jay,
This topic has been discussed earlier please see the following thread for more information... http://www.javaranch.com/ubb/Forum24/HTML/012690.html

------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello Lee,
Method yield() will stop the Thread from running even if there is no thread in the Ready to Run state. If the above situation takes place then the same Thread will run again,but it will stop the Thread once.

------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello Peter,
First I would say why you want to use JavaScript, why not jsp at both pages.
Okay, here is your solution........
HTML file using java script.

JSP file for firing SQL query.

This is just a sample code.You can modify it according to your requirment.
------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
[This message has been edited by Gurpreet Sachdeva (edited October 26, 2001).]
20 years ago
JSP
Hello Kavita,
Here, you can get the answers of Barry Boone's Mock Exam.

------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello Marilyn,
That is true that i in Pri will hide i in Base even if one is static and other is not. But you need to comment Line 1, as you already had one variable named i in the current scope. You can't declare two variable with the same name in the same scope.

------------------
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ, Exam tips and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello all,

I am working with following code....
In this I am getting a problem.According to me when it execute the sendRedirect() and goes on other page it should not print the "After catch" statement but it is printing it. Why is it so?

<%
try
{
int i=1;
int j=0;
int x=i/j;
}
catch(Exception e)
{
Sytem.out.println("Inside catch");
response.sendRedirect("abc.html");
}
System.out.println("After catch");
%>

Thanks
Gurpreet Sachdeva
[This message has been edited by Gurpreet Sachdeva (edited October 24, 2001).]
20 years ago
JSP
Hello all,
I want to know one thing that in the entity beans we define ejbRemove() method in the bean class and do not define corresponding remove() method in Home or Remote interface.Then how is it possible that we can call remove() using the Remote interface's object at client side.I mean the Remote interface does not have any remove() method defined in it then why it is not giving me error.
Thanks
Gurpreet Sachdeva
Hello Leena,
Since all the chracters have some ascii values.When you print any chracter after converting it into int, it will print its ascii value.In your case '\u0000' which is a blank space chracter has ascii value zero so it prints zero.
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello Ranchers,
It is to inform all of you that the URL of my site has been changed from www.go4java.20m.com to http://www.go4java.lookscool.com
Sorry for inconvenience. Please bear with us.
Thanks
Gurpreet Sachdeva
[This message has been edited by Gurpreet Sachdeva (edited October 23, 2001).]
Hello Hung Chang,
You are absolutely right.
Here is the code for your help.
<pre>
class Subclass extends Superclass
{
static
{
System.out.println("Subclass's static block");
}

{
System.out.println("Subclass's nonstatic block");
}
Subclass()
{
System.out.println("Subclass's Constructor");
}
public static void main(String arg[])
{
Subclass s= new Subclass();
}
}
/*
OUTPUT IS:-
Superclass's static block
Subclass's static block
Superclass's non-static block
Superclass's Constructor
Subclass's nonstatic block
Subclass's Constructor
*/
</pre>

Regards
Gurpreet Sachdeva
For Mock Exams, FAQ and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.lookscool.com
Hello Kaushal,
I have also created a set of mock exams and it is available here.
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.20m.com
Hello Kaushal,
I have created a chart of all the variables that can be used with inner classes and it is available here.
Regards
Gurpreet Sachdeva
For Mock Exams, FAQ and some useful information about Bitshift operator, inner classes, garbage collection,etc please visit: http://www.go4java.20m.com