tapan saha

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

Recent posts by tapan saha

Raising salary 30% is including Bonus potential or excluding??

-- Tapan
17 years ago
Hi All,

I am waiting for your opinion.

with regards.
17 years ago
Hi All,

Can any body point out the job profile and activities in webMethods Tool or any EAI Tools? How it is different from Java/J2ee works. In EAI, needs to have in depth domain knowledge?

I am requesting all of your�s thought.

With Regards,
Tapan Saha.
[ July 18, 2007: Message edited by: tapan saha ]
17 years ago
Manager must be capable to handle any situation without blaming subordinates.

--Tapan
17 years ago
Hi Andrew ,

Thank you very much for your reply.
I have thought that those terms are very popular that's why I didn�t explain it.
However, BMP : Business Process Management (BPM)
EAI : Enterprise Application Integration (EAI)

Is BPM tool is using for Enterprise Application Integration (EAI)? In specifically, in market has many eai tools (Like Tibco, webMethods) are they BPM tools?

Thanks in Advance!!!

with Regards,
Tapan Saha
17 years ago
Hi All,
Can you please briefly tell me How EAI is different from BPM?
In regards of:
1.In work and activities
2.In Technology and Technical Expertise req.
3.Current Market and Future Scopes
4.Job change from BPM to EAI or EAI to BPM.

Thanks in Advance!!!

With Regards,
Tapan
17 years ago
Hi All,

I need your suggestion again. Just now, I have talk with my manager about my job switch. As I have told you that, I have been offered from an EAI company.

Now my manager is telling he will assign me some interesting java work.

What should I do?

With Regards.
17 years ago
Hi Rahul,

Thanks for your quick reply. I have worked on WS as well as JMS for integration of SCM applications. Can please tell me why you are in favor of EAI.

Thanks in Advance!!!

with Regards.
17 years ago
HI All,

I have similar type of confusion. I am working in Bangalore in Supply Chain domain in a SCM company for 2 yrs.I have been offered in a reputed EAI company. Both SCM and EAI have good demand in current market. So what should I do?

1. In my current company, most of coding in xml less java work. I also heard that in EAI tools will be same thing.
2. In my current company my designation Software Eng but in offered company Senior Associate Consultant in Profession service.
3. In salary part almost same in fixed part of CTC.

I am very confuse and unable to make any decision.
pls help me out with your suggestion.

Thanks in Advance!!!

with Regards.
17 years ago
More over:


Case 1:

if("String".trim() == "String") // with-out space
System.out.println("Equal");
else
System.out.println("Not Equal");


For this ,it will refer same object for that output will be "Equal".

Case 2:

if("String ".trim() == "String") // with space
System.out.println("Equal");
else
System.out.println("Not Equal");


For this ,it will create new object for that output will be "Not Equal".

Case 3: (added by Srikanth Kowtha )

if(" String ".trim().equals("String")) // string compare
System.out.println("Equal");
else
System.out.println("Not Equal");


For this, string compare for that output will be "Equal".
I am working on Java from 1 year. I want to do the certification.
But I am confused b/w SCJP 1.5 / 1.4. Need your Advice.


Thanks in Advance!!!
hi Naseem,
let me explane in details.

Original Code base: Start

class Animal {
void eat(Object o){
System.out.println("In Animal Object");
}
}

class Horse extends Animal{
void eat(Object o){
System.out.println("In Horse Object");
}
void eat(String str){
System.out.println("In Horse String");
}
}

public class Whiz1 {
public static void main(String[] args){
Animal a=new Horse(); // Line 1
a.eat("grass"); // Line 2
}
}
Original Code base: End


See in whiz class, you create instance of Horse() which is associated with class Animal. You will get only those methods which is define in Animal but contain will be overwrite thing in Horse if it is overwritten.

See you are calling eat at line 2 with string parameter which is also a Object. So it is calling method void eat(Object o) with overwrite contain.

Hope it will help you.
Hi ,
it is very common question. we can find any lot of place.
however asnware your question is as follows :

01 : Source jguru

Vector and ArrayList are very similar. Both of them represent a 'growable array', where you access to the elements in it through an index.

ArrayList it's part of the Java Collection Framework, and has been added with version 1.2, while Vector it's an object that is present since the first version of the JDK. Vector, anyway, has been retrofitted to implement the List interface.

The main difference is that Vector it's a synchronized object, while ArrayList it's not.

While the iterator that are returned by both classes are fail-fast (they cleanly thrown a ConcurrentModificationException when the orignal object has been modified), the Enumeration returned by Vector are not.

Unless you have strong reason to use a Vector, the suggestion is to use the ArrayList.


02 : Source java world


Vector or ArrayList -- which is better and why?

Sometimes Vector is better; sometimes ArrayList is better; sometimes you don't want to use either. I hope you weren't looking for an easy answer because the answer depends upon what you are doing. There are four factors to consider:



API
Synchronization
Data growth
Usage patterns
Let's explore each in turn.

API
In The Java Programming Language (Addison-Wesley, June 2000) Ken Arnold, James Gosling, and David Holmes describe the Vector as an analog to the ArrayList. So, from an API perspective, the two classes are very similar. However, there are still some major differences between the two classes.

Synchronization
Vectors are synchronized. Any method that touches the Vector's contents is thread safe. ArrayList, on the other hand, is unsynchronized, making them, therefore, not thread safe. With that difference in mind, using synchronization will incur a performance hit. So if you don't need a thread-safe collection, use the ArrayList. Why pay the price of synchronization unnecessarily?

Data growth
Internally, both the ArrayList and Vector hold onto their contents using an Array. You need to keep this fact in mind while using either in your programs. When you insert an element into an ArrayList or a Vector, the object will need to expand its internal array if it runs out of room. A Vector defaults to doubling the size of its array, while the ArrayList increases its array size by 50 percent. Depending on how you use these classes, you could end up taking a large performance hit while adding new elements. It's always best to set the object's initial capacity to the largest capacity that your program will need. By carefully setting the capacity, you can avoid paying the penalty needed to resize the internal array later. If you don't know how much data you'll have, but you do know the rate at which it grows, Vector does possess a slight advantage since you can set the increment value.

Usage patterns
Both the ArrayList and Vector are good for retrieving elements from a specific position in the container or for adding and removing elements from the end of the container. All of these operations can be performed in constant time -- O(1). However, adding and removing elements from any other position proves more expensive -- linear to be exact: O(n-i), where n is the number of elements and i is the index of the element added or removed. These operations are more expensive because you have to shift all elements at index i and higher over by one element. So what does this all mean?

It means that if you want to index elements or add and remove elements at the end of the array, use either a Vector or an ArrayList. If you want to do anything else to the contents, go find yourself another container class. For example, the LinkedList can add or remove an element at any position in constant time -- O(1). However, indexing an element is a bit slower -- O(i) where i is the index of the element. Traversing an ArrayList is also easier since you can simply use an index instead of having to create an iterator. The LinkedList also creates an internal object for each element inserted. So you have to be aware of the extra garbage being created.

Finally, in "PRAXIS 41" from Practical Java (Addison-Wesley, Feb. 2000) Peter Haggar suggests that you use a plain old array in place of either Vector or ArrayList -- especially for performance-critical code. By using an array you can avoid synchronization, extra method calls, and suboptimal resizing. You just pay the cost of extra development time.
Hi Binesh ,

Compilation error is coming for x.m() [ as m() has private access in A]. After your change, problem at y.m() is gone. If you remove x.m() it will run fine.
Complexity of this sample test is Low.
But GUI is really nice and clean.