Friday, August 29, 2014

Reason - Why Object as super class in Java ?

The Object class is the base for Java Language and we all reading the below sentences from day one of our Java Programming.

Every class is a Child of the Object class.
Every class in Java extends Object class.
Object class is the super class of every Java Class.

Monday, August 25, 2014

Creating a file from ByteArrayOutputStream in Java.

When we are dealing with data over the line, our option is bytes and one of the handy Class in Java to deal with bytes and streams together is ByteArrayOutputStream. When ever you want to write some bytes to specific file while receiving the data you just need to use the method writeTo().  

Saturday, August 23, 2014

The style name 'z-index' should be in camelCase format

Here is one more exception we usually face while coding in GWT. When we try to give a style property to the element in the below way as we just give a property in CSS


getElement().getStyle().setProperty("z-index", "0");  

Immediately we run into the below exception,

Tuesday, August 19, 2014

Who are you ?? Coder ? Developer ? Programmer? or an Engineer ??

Ah the same question is back.

********************************************************************
In my early days of job I used to call my self as a developer since the offer letter designated me as junior software developer :P. Later I shifted my workplace and now the offer letter saying Software Programmer :P. And recently got promoted as Senior Software Engineer as well. The above all are my designations and I'm still facing issues to find what is my actual designation.

Thursday, August 7, 2014

Method without return statement in Java. Breaking method signature contract..

Caution : I'm just playing with java compiler and having fun. The below code demonstration is just for fun and do not try that in your Enterprise level code, so that you won't loose your job :P

*********************************************************************************

Have you ever tried to write a java method which has a return type and with out a return statement in implementation?? Let see a normal java method.

Monday, August 4, 2014

How to debug JSP with help of compiled Java files in Eclipse

When I'm trying to access my jsp page, some of my code causing the problem and  it ran into some exception :P. But I know there is something wrong and want to resolve the issue and I'm not sure on how to debug a jsp file in eclipse while it is executing. I'm seeing the exception after the execution and only clue is this stacktrace. So this is the exception i'm facing.

Saturday, August 2, 2014

Why do I use StackOverflow.com extensively.

How do you manage work and stackvoerflow.com together??
Are you the only guy who use stackoverflow.com this much ??
Don't you have life ?? Why don't you enjoy dude??
What the heck you are getting back from stackoverflow.com ??
Why you so much desperate about stackoverflow.com??
Don't you have life ?? Get some.

*********************************************************************************

Oooooooppaaa..... these are the questions I face regularly from my very well wishers and ofcourse I never reply them :P. I hope they read the below quote and realise why I'm using stackoverflow.com this much.

To know, is to know that you know nothing. That is the meaning of true knowledge.
Knowledge has to be improved, challenged, and increased constantly, or it vanishes.

Yes. That is the reason. I may not getting in terms of money or something else. But tons of Confidence...Yes Confidence.


In my early days of programming, I'm just scared of touching code and used to wait for a senior guy to do modifications. The only reason for that is lack of confidence. Only reason for that is not aware of the things that code does.

I used to search in Google for my coding issues and always gets stackoverflow results in first lines. I never bothered what this site do and just took the code I wanted and I'm done. Later I found this is useful to get the knowledge and to seek the help from the fellow programmer. 


After spending a lot of time by seeing tho others questions and answers, I created an account and started asking my own questions slowly. Once I stepped into stackoverflow.com and seeing the kind of questions people asking, makes me realize that I'm not at all a programmer. I found myself, in this programming world I'm a ZERO. I'm far behind in knowing things and started exploring myself the way people suggesting and observing the answers providing. After posting some questions got some confidence to answer some easy questions which I came through. Now I'm daily contributing and learning to the site to improvise myself. In this process I learn many things. 

1) Troubleshooting.
2) Debugging with eye ;)
3) New frameworks that are people updating to.
4) How to ask a programming question properly.
5) How to give a direct answer to the question.
6) How to argue in a descent manner.
7) Like this I can write minimum 100 things....Most important thing is 


I met super programmers on StackOverflow.com and had a conversation with them as well. Do you ??   

Believe it or not, I have more friends on stackoverflow.com than in my real life: ). My programming day starts with opening stackoverflow.com and spend some time seeing some new programming questions related to my favorite programming language. And then I start working. Later on hourly basis I'l open stackoverflow.com for some refreshment. I may question,answer,comment,moderate,argue. Ah what not ..I do almost everything there. That's my kind of fun with that site and it 's part my working life.

Thanks to @Paresh Mayani, the guy who inspired me to enter into stack. And It gave me few good friends so far like A.R, Maroun, Grijesh, Subrajyothi, Dharam ....and the list goes on.


Thanks to Stack Exchange, for everything.

Friday, August 1, 2014

Compiler version : How String concatenation works in java.

The designers of Java decided to retain primitive types in an object - oriented language, instead of making everything an object. String class is one of them.String is the one of the most using(also confusing) class in Java. It is the class most used since to convey something(content), we need Information which is in the form of String.If someone showing / sending some information or passing some username / password to some system, what not most of the business depends on String only.