Love Malaysia, 1Malaysia, Satu Malaysia, One Malaysia. YEAH
Monthly archives for August, 2010
Increment Difference between C and Java
Both C and Java are high-level language.
Both language provides support for variable increment such as the statement: “c++”, “++c”.
However I have discovered some difference between them, where my knowledge is not able to define it currently.
Consider a piece of code in C:
#include <stdio.h>
int main(void) {
int c = 1;
c = c++ + ++c;
printf("this c: %d", c);
return 0;
}
The output will be c = 5;
#include <stdio.h>
int main(void) {
int c = 1;
c = c++ + c++;
printf("this c: %d", c);
return 0;
}
The output will be c = 4;
However in Java,
int c = 1;
c = c++ + ++c;
System.out.println(c);
int d = 1;
d = d++ + d++;
System.out.println(d);
The output will be c = 4 and d = 3
Therefore, this is the difference between inner execution structure for both language and need to be researched in order to fill in the blank here.
To be continued…
We don’t want Java controlled by Oracle
Oracle sue Google because suspected Google using Java in its Google Android Operating System Framework. Oracle said that Java is an operating system framework language, and Google Android publishes its framework had infringed its seven patents. Is Java an operating system framework?
As Java Developer, I want to say something. Java is an open source product, should be maintained by open source community, and free to use by any company, any people, but not fully controlled by one central company, such as Oracle.
This Oracle’s decision to take over Java from Sun, to have fully control of the Java, will be a wrong step for Oracle, or the future of Java. If not Google, IBM, these companies using Java, Java may be die soon.
Oracle, please listen what Java developers thought, freeing Java, please, otherwise Java will die soon. Please don’t play fire yourself, which will burn your hand.
The Internet of Things (物联网)
In computing, the term Internet of Things (also known as the Internet of Objects) refers to the networked interconnection of everyday objects. It is generally viewed as a self-configuring wireless network of sensors whose purpose would be to interconnect all things. The concept is attributed to the original Auto-ID Center, founded in 1999 and based at the time in MIT.
The idea is as simple as its application is difficult. If all cans, books, shoes or parts of cars are equipped with minuscule identifying devices, daily life on our planet will undergo a transformation. Things like running out of stock or wasted products will no longer exist as we will know exactly what is being consumed on the other side of the globe. Theft will be a thing of the past as we will know where a product is at all times. The same applies to parcels lost in the post.
物联网(The Internet of things)的定义是:通过射频识别(RFID)、红外感应器、全球定位系统、激光扫描器等信息传感设备,按约定的协议,把任何物品与互联网连接起来,进行信息交换和通讯,以实现智能化识别、定位、跟踪、监控和管理的一种网络。物联网的概念是在1999年提出的。