Archies Gomes

Ranch Hand
+ Follow
since Jun 19, 2005
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 Archies Gomes

Hi Pramod ,
The company1 which you are talking is a very good one...good to start with
and moreover also in the city limits of bangalore
12 years ago
Hi,
Good to hear that you taking your scjp very soon.Regarding the experience what a company looks for is the industry experience and not just a programmung experience which is done as an assignment or a part of the c'gge project.So the 2-5 yeas exp what you are saying is the industry experience which is reffered to.And anyways if you are a fresher it doesnt matters in this hot going market, you have a lot of openings now a days for freshers too.Which part of the country do you live in?It would be much easier for yout to find a job where there are many software companies ,may be one like Bangalore.So All the Best for your job search,you will get a good one very soon

Bye .....
If you are not living on the edge ,probably you are taking too much space.
12 years ago
Hi
Is there anyone who worked in this area or has a sound knowledge about this ..Kindly reply for the same as I need to make a decision about a job switch.

Thanks and appreciate your time.
Archies Gomes.
12 years ago
Hi All,
Can anyone please let me know of how is a career in SAP for a specific area known as "Business Rules Framework".If anyone has worked on this then kindly let know about wheather the job is interesting and what exactly is the role to be played in this kind of area.Moreover is there an increasing demand for this ?

[ November 10, 2006: Message edited by: Archies Gomes ]
[ November 13, 2006: Message edited by: Archies Gomes ]
12 years ago

Local variables are never garbage collected. They live on the method stack and therefore simply disappear immediately when the method exits.


So what if a string is created inside a static method,it would be still created on heap itself right?
may be the methods get executed on the stack and all the other references and primitive type remains on stack ,but what i fell is the objects would still get the memory from heap itself right?so would all these memory would get cleared(ofcourse not referenced by outside entities in the mthod) on the Garbage collection call?
Thanks,Appreciate your valuable time.
12 years ago
Hi All,
Can anyone please give me a good link for a topic on memory allcoations in java as to,
*)where are all the static objects of a class stored
*)where are the methods stored during exection,I mean which part of memory.
*)are members of a Ojects or instance methods and class methods or static methods stored on the same memory location during their execution?
*)where are primitive types stored which are delcared as attribute of the class.

So for Ex,

where is the temp1,temp2,temp3 stored
where is int a stored
where is int b stored
where is int c stored
and whre are both of the methods of the above class stored while execution

Thanks All,Appreciate your valuable Time.
[ September 18, 2006: Message edited by: Archies Gomes ]
12 years ago
Hi Henry,

When an object is eligible for garbage collection, the GC will call the finalize() method. Upon completion, it will check for eligibility again -- this is because the finalize() method can make the object reachable. If the object is still unreachable, or becomes unreachable later, the object is garbage collected. (the finalize() method is not called again)


can you please elaborate on this with an example.

Thanks,Appreciate your valuable time.
[ September 18, 2006: Message edited by: Archies Gomes ]
12 years ago
Hi All,
I have a doubt regarding memory allocations in java,
What I understand from memory allocations to a program is ,
All the instance variables and objects created using the new operator are stored on the heap
And all the static variables created are stored in a special area called as static area.
So Once a class loads, all the static variables are initialized and the static methods been loaded.
Now what i wanted to make clear is ,
what happens when I create some objects in a static method,Can these objects be garbage collected once the execution of this method is over ??because what I could see is objects created in static method ,were still seen on heap...a Example of this was ,
whenever we call function trim() in string ,it internally calls the substring method ,which returns

new String(offset + beginIndex, endIndex - beginIndex, value)

so now for example if i'm doing something like,

So whenever now this MyClass is loaded ,myMethod would get executed as its a static one,so after execution of this method ,would the Strings temp and a be eligible for garbage collection or not?and do we refer to them as static variables because they are created in a static method?

Thanks All,Appreciate your valuable time.
[ September 18, 2006: Message edited by: Archies Gomes ]
12 years ago
Hi,
Whenever i do any operation on two double numbers and when i try to print it ,I get the resulting output in the form oe 123E7 ie its in the exponential form.Is there a way I can avoid the "E" representaion and get the actual number of 0's after the 123.Kindly reply fast .
Thanks,
13 years ago
Hi
Assertions are used at production level just for checking wheather everything is going on as we expected or not.If you see an assertion Error being thrown ,then you need to go and catch hold of the bug by yourself manually...Do not let the Throwable to interfere with this ,ie do not catch these type of Errors as the main purpose of Assertions would be lost.Its not an exception its an KNOWN ERROR (Exceptions are something which we cant predict)So let us not run from the battlefield rather attck the bug and let it go out of the software.
Great Luck


Thanks,
13 years ago
can anyone please tell me why and when servlets are used?

[corrected spelling, reduced from ten to one question mark - Dave]
[ November 18, 2005: Message edited by: David O'Meara ]
13 years ago
Hi Sandeep ,
For what reason I dont understand the error isnt visible to me and for noone perhaps...It would be really better if you pasted the error too.
I havent worked on my-sql but yeah i think its somewhat like Oracle....so assuming that it too takes quotes around it to insert string you can try with the follwing,

Note the single quotes ...as you are trying to enter a string so i think the column is too a string in your database or if its a integer ...probably you will have to remove the quotes and use Integer.parseInt(id);
Hi
The design given by you is absolutely a great one but hey would you please tell me the execution of the statement..

x = new FilmContainerFile();


when the FilmContainerFile(); is an interface .
13 years ago
Hi
A nice one infact....Didnt strike at the first glance but when u said its lame to send the solution ...got that in nearly 15 secs...
Good one,
13 years ago
Hi PVSR Rao
what java does when it stores string references is that it creates just aliases for the same type of string which does not happen normally with other classes.
what i mean by this is when you say,
String s1="Hai";
String s2="Hai";
then s1==s2 would return you true and also s1.equals(s2) would return you true
this is because whenever any string is created then any references having same charatcer sequence point to the same string in the pool.
eg at a later stage if you create a string with same character sequence "Hai" then it would also be just as an alias to the above two strings s1 and s2;
This is done by java just for performance purpose so that it does not takes more space for storing same type of strings.

But do note that for Classes such as Integer if you write a code such as ,
Integer i1=new Integer(2);
Integer i2=new Integer(2);
and print the value for ,System.out.println((i1.equals(i2)));
you would get a value true..but this is because the equals method of Ineteger class is overidden.
so if you do System.out.println(i1==i2);
you would get a value false as == would check the reference and not the values.
So in strings if you do either == or .equals ,ultimately it is the characters which are being checked for the equality.

Bottomline is that all string with same characters belonging to string class have same references.
13 years ago