Ravi Kishore

Greenhorn
+ Follow
since Mar 22, 2005
Merit badge: grant badges
For More
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 Ravi Kishore

Hi Joshi,

one possible solution could be as follows:
1) define the schema in a seperate xsd file
2) import/ include this schema in to the wsdl that defines messages and porttypes
3) import/include the wsdl defined in step-2 in to another wsdl which defines binding and services
17 years ago
Hi Jeffrey Spaulding,

Thank u, i'll implement u advise.
18 years ago
Hi,

Is there any API available in java for constructing a tree dataStructure. if so can one help me with a simple example.

Does the classes TreeMap and TreeSet are used for constructing a tree data structure?
18 years ago
hi all,

while iam debugging a javascript program iam getting the following alert:

"Source code is not available for the current statement."

Can anyone tell me when will i get this alert during debugging.
iam using visual interdev for debugging.
Hi all,
The following code snippet i got it from the site: clickhere



in that it is mentioned that by using String.intern(). the amount time taken to point to fixed literal is less than the time required to point a string to fixed literal without using String.intern()

but when i executed the above it is showing reverse.

can anyone tell me why it is happening in reverse condition?
18 years ago
Hi,

if all the methods in the interface are defined in the super class A, then it is not required to redefine those methods in the sub class B.

BUT

if all the methods are not defined in the super class A then the super class A must be made Abstract and the sub class B must define those methods that are not defined in the super class A.
18 years ago
hi santy,

OUTPUT:

BAAP

the reason is as follows.

the main is written in BAAP, so it is a member of BAAP. The follwing statements:

BAAP b = new BETA();
b.meth();

observe carefully that meth() in BETA is private so it can not be assessed out side the class, so the method "meth()" of the superclass (BAAP) is called as main is a member of BAAP class which is valid.
18 years ago
Hi kiennjal,

what nicholas and stefan has said is correct. "==" operator always compares the references (addresses) but not the contents pointed by the addresses. So for string comparisions it's advisable to use equals() or equalIgnoreCase() functions.

keep in mind that while comparing a string object aganist a string constant always proceed as follows:

String str = "peas";
if("beans".equals(str))
{
//do something
}
else
{
//do something
}

but if it is done as follows:

if(str.equals("beans"))
{
//do something
}
else
{
//do something
}

a new dummy object is created for the string constant "beans" and then the comparision takes place. which will consume memory unnecessarly.
18 years ago
Hi David,

I don't know anything about the game "Conway's Game of Life" can u explain in detail about the game or specify me a link that could provide me more details about the game.

Hi Ko ko nang,
I have already implemented the bank application.
18 years ago
Hi everyone,

Can any one of u suggest me a small application or mini project that makes use of swings and threads heavily. other than chatting application.
[ March 30, 2005: Message edited by: Ravi Kishore ]
18 years ago
thank u ernest and ko ko nang.

I'll definitely consider u r suggestion in developing my applications.
18 years ago
Hi seshayya krishna,

if u want to continue even when a exception occurs u can do the following:

1) u can follow the else condition solution given by ko ko nang.

2) use try-catch block as shown below:

try{

keyContactPersonFirstName = grantApplicationDoc.getGrantApplication().getForms().getKeyContactPersons() ;

}catch(NullPointerException e)
{
keyContactPersonFirstName = "some string";
}

before applying the solution chect what does the following statement return "grantApplicationDoc.getGrantApplication().getForms"().getKeyContactPersons()
18 years ago
Hi sarah,

what paul has said is correct, i.e when u r converting a string in to a integer using the wrapper class method(Integer.parseInt(string)), the string must contain only numerals but not non-numerals.

can u say "99e99" or "67 87" as numbers? so while converting these strings to numbers u get NumberFormatException.

the best programming practise is to use try-catch block surrounding such kind of operations.
[ March 30, 2005: Message edited by: Ravi Kishore ]
18 years ago
Hi sarah,

u r reading the input through the statement:

s1 = mark.readLine();

readLine() accepts a line of input(i.e until u press enter).
Now u r entering the following numbers:

99 99

(observe there's a space between the 2 numbers, u'll asume it as 2 numbers but readLine() reads it as a line of characters) so the variable s1 contains the string "99 99" and so the statement

Integer.parseInt(s1)

throws NumberFormatException because there's a space between the 2 numbers(99 99).
18 years ago
Hi,

SOAP is XML based protocol used to send requests and receive responses to any application that can talk xml and understand soap protocol.

the best site for beginners would be www.w3schools.com
19 years ago