venkatesan Rajagopalan

Greenhorn
+ Follow
since Jan 12, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by venkatesan Rajagopalan

the simplest way to explain is this for post increment operations:
The increment works as follows:
The first one:
sop(1(2) + 2(3))
total is 3 but the value of i is 3
second one:
sop(3(4) + 4(5))
total is 7 and the value of i is 7
third one:
sop(5(6) + 6(7))
total is 11 and the value of i 7
Trust this sequencing should help
venkat
i should admit I was late in replying and before which replies had already been posted.
venkat
[This message has been edited by venkatesan Rajagopalan (edited February 16, 2001).]
With each iteration of for statement, a new object is
created and assigned to Str. When a new object is
assigned to Str, the previous object that was referenced
by the Str is not accessible by Str or by any object or
variable for that matter. Hence the object become
eligible for garbage collection.
In the above question, five interations indeed takes
places and breaks at that. Hence the objects are
garbage collected upto the penultimate object i.e 4
objects are garbage collected.
venkat
Could anybody explain what effect the final modifier in the main method would have on the program!!!
Whilst is't wrong that the signature itself is not in tune with the accepted procedure!!!
Grateful for more information
venkat
yes it is true. By convention the main method should be public static in that order. as far as exam is concerned we should stick to the fact that the main method should be public static void main(String args[]){}
Correct me, if I am wrong.
regards
venkat
24 years ago
I HAVE WIN 98 UPGRADED TO WIN2000. I AM UNABLE TO LOAD ANY JAVA PROGRAM, I HAVE TRIED THE VARIOUS OPTIONS WHICH WERE GIVEN IN THIS FORUM BUT STILL UNSUCCESSFUL
GRATEFUL FOR INFO ON HOW TO GO ABOUT IT
THANKS AND REGARDS
VENKAT
24 years ago
Dear Maha,
I had been through your discussions recently and you have done a great job. Keep it up.
Today I got find a site by Nityananda Mukerjee, probably he is from IIT Delhi who has an excellent cite with wonderful links. could you please care to get to the site and get hold of the exam links. Here goes the URL http://www.geocities.com/nityananda_mukerjee/
all the best in all your endeavours.
regards
venkat
[This message has been edited by venkatesan Rajagopalan (edited January 28, 2001).]
Achutha,
you are right implicit conversion cannot take place from int to byte.
you will agree that when final modifier is given that particular variable value remains constant and cannot be changed, right.
In the instant case, the compiler implicitly knows for sure that the int value will remain pegged to 100 and would never be changed and the compiler upon checking that it is within the range of byte, compiles the program and no casting errors is spewed up.
regards
venkat
hi
even i have problems in setting the path and compiling programs.
i have downloaded java 1.3 from the net and win 98 upgraded to win 2000. earlier with java 1.2 i could do it in another computer!!!
can somebody help in setting the path
thanks a million
venkat
24 years ago
hi
my explanations are as under:
(1) the first is right because flowlayout is used to layout components of container object in the left to right and top to bottom fashion.
Hence two is definitely wrong
(2) the first three are not right because the control is explicit in any flow whereas definitely the fourth is right because synchronised thread coordinates access to synchronised methods and statements and keeps the methods in multiplied threads from conflicting with one another. For eg. The synchronised method is allowed to access class or objects by means of a lock, when the thread gets the lock, it is executed without any interuption, whatsoever, unless a wait() is deliberately inserted in the midst of the code.
(3)the diff is between static and non static.
obviously non static variables are created when the object is created and exists until the object is garbage collected Whereas static variables comes into existence when the class in which they are declared is loaded. they exist till the class exists. so the first is correct
regards
venkat
just to add to what i was said before.
The constructors, which are basically named as the
class name but without any return types and that
which creats class instances are called objects.
regds
venkat
hi
to add to what Sweekriti has said
Object is the blueprint and in Java everthing
flows from an object.
When create a mould of the object and assign a name,
the name is the object reference.
regards
venkat
hi
Totally I am in agreement with others that KM is the best book with describes things in detail though it may sound at times didactic. But it is worth the effort.
regards
venkat
Cindy, could you please let me know the classpath for win 95 and if i am using ie5.5
thanks and regards
venkat
24 years ago
Dear friend,
the reason what I can forsee is this
"i has been assigned to k after i has been declared earlier". Am I right.
Whereas j has been assigned directly as 20"
When it compiles, j is certain that 20 will be assigned to it and finding itself that it is in its range, it works. Wheares in the case of k=i, the compiler is not certain that i would remain constant as it is susceptible to change.
This is my first post, I hope it serves the purpose
regards
venkat