Murad Iqbal

Ranch Hand
+ Follow
since Dec 09, 2003
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 Murad Iqbal

Use a Vector or even an ArrayList would do. Use the remove method if you use Vector to get the Object. Place it at in a new place. This way you can be sure it wont appear in the next iteration. Hope this helps.
16 years ago
Yup, the code in a static initializer block is executed by the virtual machine when the class is loaded.
17 years ago
Looks like you will have to write lengthy code to do this copying if I understand you correctly. You can change your Transfer class to have a getPOJO() method which creates a POJO object after doing appropriate mapping. Alternatively you may want to subclass the Transfer object if you dont want the original class to be altered and write that method in your subclass. If you do not want to touch your backend classes, you can pass on a Transfer object to your POJO and have a constructor in your POJO which accepts a Transfer object.
17 years ago
Its not about main. Its about method. You can not have that redeclared in a method. In a class you can.
17 years ago
Thanks Camp, that was good explanation.
17 years ago
It will not compile. Try changing

int u=190;

to

int j=190;



and it would work just fine. Previous declaration of int i would not be seen as a duplicate as they are in separate blocks of code, thus their scope is limited to their blocks. The repitition of

u

in main is not allowed however.
17 years ago
I have read and understood till now that only the arguments, with final keyword, passed to a method are accessible to a class defined in that method. However, I saw in a program that the class variables in which that method exist, are also accessible by the class defined within a method. Please someone be kind enough to tell what is the complete concept?

Thanks,
Murad.
17 years ago
Hi Vipin. Can you please share your experience if you pursued the Taj Software offer cuz I have been given the same offer too.
17 years ago
Hi all,

Could someone pelase suggest which data structure should I use? I have a number of key value pairs where duplicates are allowed. Which data structure should I use?

Murad.
17 years ago
Hi all,

I am calling an Oracle stored procedure which runs an Insert statement on a 23 column table. The values supplied to the Insert are through a select statement that collects required data from different tables, does some string concatenation, uses TO_CHAR, Decode, NVL functions and a mixture of all to create values for individual columns. The Select statement also contains a Where clause which does 3 comparisons all of which should be true i.e. (condition AND condition AND condition). One of the conditions looks like this

TO_CHAR(purhc_dt,'DDMMYYYY')||accountnum||corp = trans_id.

The select may return several records, potentially 10-100, which are then inserted.

The result, as expected, the statement is very heavy on the Oracle db and it took ages to do anything before finally running out of temporary tablespace. Any comments/suggestions how to improve this?

Regards,
Murad.
Hi all,

I am calling an Oracle stored procedure which runs an Insert statement on a 23 column table. The values supplied to the Insert are through a select statement that collects required data from different tables, does some string concatenation, uses TO_CHAR, Decode, NVL functions and a mixture of all to create values for individual columns. The Select statement also contains a Where clause which does 3 comparisons all of which should be true i.e. (condition AND condition AND condition). One of the conditions looks like this

TO_CHAR(purhc_dt,'DDMMYYYY')||accountnum||corp = trans_id.

The select may return several records, potentially 10-100, which are then inserted.

The result, as expected, the statement is very heavy on the Oracle db and it took ages to do anything before finally running out of temporary tablespace. Any comments/suggestions how to improve this?

Regards,
Murad.
[ September 07, 2006: Message edited by: Murad Iqbal ]
17 years ago
Hi all, I now understand there are several Java decompilers that simply reverse your classes to the source code. What prevention do we as programmers have to keep this evil away as this is a big threat to copyright. How can I write my code in a way that it cannot be decompiled, is this possible?

Murad.
17 years ago
Hi, I now understand that there are many Java decompilers that simply reverse your classes to the source code. What prevention do we as programmers have to keep this evil away as this is a big threat to copyright. How can I write my code in a way that it cannot be decompiled, is this possible?

Murad.
17 years ago
and when do i create an environment object? I am not sure when that is done, i just call initial context in the beginning.
When creating an ejb, is it still 5 classes that are to be created or 3?

Do we still use the localhome and local interfaces, or 1.Bean class 2.Remote interface 3. Home interface would do?