Yatish Sonkeshariya

Greenhorn
+ Follow
since Sep 28, 2011
Yatish likes ...
Hibernate Spring Java
Merit badge: grant badges
For More
PUNE
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 Yatish Sonkeshariya

Anyone know, from where we can download the source code of native method. Any url?
12 years ago
Hi All,
How can we see the complete implementation of native method?
12 years ago
Hello Tim,
Thanks for quick reply.

Suppose i have 1 jsp page and i want to handle doGet() and doPost() in that jsp page itself then how i'll override associate method in jsp and where we place the java code in JSP?
Why we should not to write java-code in jsp and wht dou you mean by "Java code has no place in JPSs" ?
12 years ago
Hi All,
I am new in Java-Thread. Can you explain what is Thread-Pooling and how we can implement this concept in java?

Hello ROB,

I already search for this topic but didn't got any answer, if you know link of that post could you please post that.
12 years ago
Hello All,
I have some doubts related to Servlet and JSP.

JSP automatically gets converted into Servlet, also we can write the java code in jsp so can we write the processing code in jsp to handle the request completely?
Writting a servlet for each jsp is mandatory or not?
12 years ago
Hello All,
Please help me.

Why Java given 2 types of exception(checked and uncheckd) and how to decide which type of exception we should to use and where?
Suppose i have a project where i need to create multiple user-defined exception, so how i will decide that user-defined exception should be checked or unchecked?
give me some example.

Thanks in advance.

[Edit - title - MB]
12 years ago
Hello All,
Which TYPE of Driver used by Hibernate(Type-1, Type-2, Type-3, Type-4) and Why?
Thanks Tim for reply.
Could you explain both way to achieve this goal, step by step?
12 years ago
Thanks Matthew , still having doubts which could be solved by writing some R&D code for this.
Both methods of Super-Class returning Number. While overriding, methodA() returning same type(Number) but methodB() returning Object which is the superclass of Number which is not allowed.
Same thing i said in my question that we can change return-type by its subclass not by its superclass-type.

In above scenario Our program wont compile.

Why this rules?
Hi All,
May be this could be silly question but its asked in 3-4 interviews that why following rules are there for overriding:-

Rules
1. If BaseClass having a method whose return type are any primitive-type then while overriding this method, you can't change its return-type.
2. If BaseClass having a method whose return type are any user-defined data-type then while overriding this method, you can keep same return-type or change its return-type by its derived-class.
3. If BaseClass having a method whose thorws a IOException then while overriding you can keep same exception or can change it by its derived-class.

beanInstance is the instance name of a particualr class, using which you can access its method just like you create instance progamatically,
ex- ClassName clsName = new ClassName();
It could be any name.
Can you post the error which you got?
12 years ago
JSP
Hello Patrick,
1.In <jsp:useBean id="user", user is only name of beanInstance, you can use any other name.It doesnt relate to package-name.
2. UserData.class should be placed in classpath(WEB-INF/classes/user/UserData.class).
12 years ago
JSP
Hi,

I just want to change my Java-Webapp url and webapp deployed in Tomcat-6.0 i.e i want to change webapp-url from http://localhost:8080/mywebapp to http://yatish/mywebapp.

Also i want to authenticate my webapp using Tomcat.

12 years ago