Definition of a Java Container

The common containers in Java EE are servlet container and the EJB container, and I see these as examples of IoC(Inversion of Control) containers. The crucial aspects are : Your code does not have any main() or “wait here for a request logic” – the container starts up and configures itself and then eventually initialises … Read more

Is Java really passing objects by value? [duplicate]

Java always passes arguments by value, NOT by reference. In your example, you are still passing obj by its value, not the reference itself. Inside your method changeName, you are assigning another (local) reference, obj, to the same object you passed it as an argument. Once you modify that reference, you are modifying the original … Read more

What is a multibyte character set?

The term is ambiguous, but in my internationalization work, we typically avoided the term “multibyte character sets” to refer to Unicode-based encodings. Generally, we used the term only for legacy encoding schemes that had one or more bytes to define each character (excluding encodings that require only one byte per character). Shift-jis, jis, euc-jp, euc-kr, … Read more

What’s the difference between polling and pulling?

They’re two distinct words. To “poll” is to ask for an answer. To “pull” is to use force to move (actually or conceptually) something towards oneself (again, actually or conceptually). One “polls” a server when software on a client periodically asks the server for something. One “pulls” data from a database towards client software. Note … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)