Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!

Satyen Singh

Greenhorn
+ Follow
since Oct 05, 2011
Satyen likes ...
Tomcat Server Java Ubuntu
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Satyen Singh

Hello Friends,

I have a question:

What is the name of the jar files in which java.lang package is present? and in which folder is that jar file?

Thanks in advance
10 years ago
Hi Friends,

My question is,

can we have 2 objects of same hashcode in java?

if yes, how?

thanks in advance dear friends.
10 years ago
Thanks Bear,

Also I will take your advice of Interrogative Sentences Seriously.

Thanks once again.
10 years ago
Hey Tim,

What is the name of those Classes???
Does Container creates its own class???
when does those classes get loaded to execute the function definition ???

please reply,
Thanks Tim.
10 years ago
Hello freinds,

I am little confused about the various methods implementations.
Actually, I was Learning Servlet and JSP and I found many methods like

request.getSession();
response.getWriter();

and many more............

so please, can any one tell me where(In which class) the implementation of methods(getSession(), getWriter(), etc) are present ?

Thanks in advance, freinds.
10 years ago
even i use Notepad++.
It is good. you should use it
10 years ago
Hey Karl,

Don't think that Scanner is confusing or hard understand.
Remember Java's 1st Feature is that Java is "Simple" so, nothing is hard in java.
Scanner is very easy.
I will explain you how to use it and why .......

Now, If you want to read user input age from the console.
following is the code snippet in java using scanner.

10 years ago
Thanks Rob,
It is working.......

10 years ago
Following is my code which throws "Null Pointer Exception" can anyone please tell me where exactly I am wrong



And Following is the Error



Thanks in Advance.........
10 years ago
Guys, I got the Solution for this question

Actually we have a class in servlet known as InvokerServlet
you can open your web.xml file which resides in your JBoss Directory Structure and the code
with servlet and servlet-mapping tags for a InvokerServlet will there just Uncomment the code
and then DONE

You can execute your servlet/jsp application without editing your local web.xml



If I am wrong
OR
If someone has anything related to InvokerServlet, please post it. It will be appreciated.

thanks
10 years ago
hi Dustin,

please, specify the exact line on which you are getting error.
10 years ago
I had given an interview in indiagames for the post of game developer
they grilled me on java's threading concept

so i would recommend you go for both C++ as well as Java(Threading with detail knowledge)
10 years ago
The following code in your programme

System.out.println(b1);
System.out.println(tree);

internally it means:

System.out.println(b1.toString());
System.out.println(tree.toString());

the method toString() in the above code returns String Representation of your object's hashcode which is a unique code for each object in java.
if you want to get the String value specified by you in the Constructor as title property of your book class you must override toString() method
from the Object's Class and write your code to print the title of your book like i mentioned below.



now the code

System.out.println(b1);

will print it's title("How cats work") on your console.


10 years ago
Hii guys,

I have seen one JSP/Servlet based application whose Deployment Descriptor wasn't has anything like mapping and all but then also that application was working fine.

what I think is that it might be a feature of JBoss Application Server ....

Can any one please explain me about this ???


Thanks in advance


10 years ago