Win a copy of Spring Boot in Practice this week in the Spring forum!

Sonali Salunkhe

Greenhorn
+ Follow
since Feb 02, 2006
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 Sonali Salunkhe

Hi everyone,

Actually i tried the savepoint ( above given code) using type4 , type1 driver. For type1 -- It doesn.t support this feature.
For type4-- It givees me abstartctmethosd--above ,mentioned exeption.

Can anybody tell me which driver supports this feature?

note: The savepoint feature works with oracle DB.I tried it.

Thanks .
Hi everyone,

Actually i tried the savepoint ( above given code) using type4 , type1 driver. For type1 -- It doesn.t support this feature.
For type4-- It givees me abstartctmethosd--above ,mentioned exeption.

Can anybody tell me which driver supports this feature?

note: The savepoint feature works with oracle DB.I tried it.

Thanks .

Fine Thanks.
I used the type 4 driver for oracle,it is loading properly ,Even there is no problem while making a connection.

[I]




I have written the above code.I have the table SavePintDemo with the field id, name & salary.
The output it generates using jdk1.5 as :

Type4 driver is registered
Connection established
Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.Ora
cleConnection.setSavepoint(Ljava/lang/String Ljava/sql/Savepoint;
at SavePointDemo.<init>(SavePointDemo.java:41)
at SavePointDemo.main(SavePointDemo.java:78)

[/I]

Thanks in advance.
Hello Eveyone,

I am doing this instruction:
Savepoint sp1=con.setSavepoint("one");

on jdk1.4 . I want to know whether jdk1.4 supports Savepoint feature?
I don't understand " slide servlet"
Can u please explain me ?
16 years ago
HI,
Aggregation : Containment.. One objcet acts like part of another onject.

Inheritance : U get properties from super class(existent class )
like parent & children
hi,



See the memory model : ( rather draw it :")

stack heap

a1(e.g :2000--ref.value) ---------- [ 1, 1 ,1 ]

a2=2000--copy of a1. means the a2 also point to same area on heap.

so [1,1,1] objectstate has two refernces , a1 & a2(local to function)
So thr ref contens are changed, BUt when the function is over , a2 since local destroyed.

Just see the o/p :

It is 20 & address(some hex no)
not 10 & null



Hi

I tried the code here on jdk1.5.
The answer b is correct, overridden method shouldn't throw more exception( super clsss) than the one.

Thanks for quick reply

I m new to J2EE& trying different things.

Normally we said doPut() method is used for uploading anything on server side.

Lets assume,i want to do the file upload in servlet,so if i go with post(), it works fine, but if i replace doPost() with doPut(), it won't work.

Does it mean that it depends on browser settings?( http version : 1.1)
16 years ago
HI All,
Can anybody show me how to use doPut() & doDelete() in servlets through demo program?
16 years ago
class Ham {
static int m(int i)
{
System.out.print(i + ",");
return 0;
}
public static void main (String[] args)
{
int i = 0;
i = i++ + m(i);
System.out.print(i);
}
}


This happens :

i=i++ + m(i);

i= 0 + m(1); // since its post increment , its value is 0 for first time, then it incerement by 1, this new value is send as argument to m

i= 0+ 0;
i=0;

So it prints: 1,0