Geeks With Blogs
Rahul Anand's Blog If my mind can conceive it, and my heart can believe it, I know I can achieve it. Java
Debugging - Remote JVM
Most of the JAVA IDE like Eclipse or InteliJ allow configuring the application through Debug configuration to attach a remote JVM and debug the code libraries. Let’s walk over this configuration and understand how this debugging works. Coming from MS Visual Studio background, I always missed the easy way of attaching your code by launching the Debug -> “Attach to process” and selecting the target process which is actually executing the library. Under JAVA this needs to be done in two steps. First ......

Posted On Monday, October 19, 2015 7:25 PM

Java behaves differently with string split compared to C#
Coming from C# background I assumed certain behavior while using split() method on strings that no matter what the returned array will have delimiter count + 1 elements. And my assumption cost me few hours of debugging to fix a simple issue!! Java behaves differently with split() and provides many possible options configurable through second parameter. The default implementation of split() with single parameter assumes second parameter value as ‘0’, which means trailing empty elements are ignored. ......

Posted On Tuesday, April 2, 2013 10:39 AM

What are Java Beans?
JavaBeans are reusable software components written in Java. It is only a standard defined to follow a convention of class design. It enables the ability to transform Java Bean objects into a single object (bean), which can be passed around easily using the serializable feature. A JavaBean is a Java Object that is serializable, has a 0-argument constructor, and allows access to properties using getter and setter methods. The three mandatory requirements are bold-faced in preceding line ......

Posted On Monday, March 4, 2013 3:02 PM

Support for LINQ in JAVA
I have been programming in C# and .NET for a decade now. I loved the concept of LINQ and Lambda Expression which brings a layer of separation between the user request to process a task and the real execution of the task which can be made to execute differently in different systems. This is specially beneficial in todays world with multi-core machines. This gives the power in hands of the execution engine to parallelize the queries as per availability of system cores. The JAVA community has realized ......

Posted On Monday, February 11, 2013 8:54 AM

Copyright © Rahul Anand | Powered by: GeeksWithBlogs.net