Tuesday 26 July 2011

by only seeing your program how can you say that this java program is platform independent .

this is a very easy question , friends but for a starter , this looks like a heavy one ,
but in java , the mighty sun provide everything so . dont worry i will help you .

when we starts  program , when we declare main at time you all java horns include void , so why you include void do you ever think about it .

the reason behind void is that , we all know that no return type , but in actually we are telling to machine that we dont need anything from you so sorry i am happy with myself .

so what is the effect of void , first question in your mind that why this fool person , is wasting our time .
if m a fool than sorry leave this post . and fuck your stupid minds kingdom .

what happen when we include int in our java program , means we are now saying that we want something from machine , but we all know that java is platform independent , now if you write int , than if you are using 16 bit computer than int will return 2 byte , and 32 bit will return 4 byte , now by including int we make our program as platform dependent . so thats why java never allows you to make your program as a platform dependent . { but please dont try , strictfp + float here } and you will excuse me why this is not working .
becasue still you are returning something but it is controlled by strictfp .

No comments: