Hi, recently I was reviewing the code a project which was having some database issues, while the review I found that the project environment was setup with the MySQL with one master node and two slave node, and I was surprised that in the code they have used the default JDBC driver for database connectivity which …
Tag: java
Jul 16
Download/Attach source-code/java-docs with maven dependencies
I am using Maven in my projects from last couple of years, and the automatically downloading the Jars from repository feature of maven is really helpful for developers. But If you are using Eclipse and want to read/analyse Source Code or Java Doc of API then you need the jar file that contains the Source …
Jun 21
Accessing Private Members of a Java class using Reflection
Somebody asked me that, “Is there any way of accessing private members of a Java Class?” Then I got the idea to write this article, because Java Reflection API provides a feature for accessing private members of a Java Class. java.lang.reflect package provides the AccessibleObject class that is parent class of Constructor, Method, and Field …
Jun 14
Introduction to Nonblocking Sockets
Here, I am going to explain what non-blocking sockets are, how it works, and where it can be useful, everything in details. Preface: Non-blocking sockets are introduced in Java 2 Standard Edition 1.4. It allows network communication between applications without blocking processes using the sockets. A nonblocking socket allows input/output operation on a channel without …