Thursday, 26 July 2012

Some facts about Java Programming Language and its History

Java is a programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM)regardless of computer architecture. The original and reference implementation Java compilers, virtual machines, and class libraries were developed by Sun from 1995. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later renamed as Java, from a list of random words. Java promised "Write Once, Run Anywhere" (WORA), providing no-cost run-times on popular platforms. Major web browsers soon incorporated the ability to run Java applets within web pages, and Java quickly became popular. In 2006, for marketing purposes, Sun renamed new J2 versions as Java EE, Java ME, and Java SE, respectively. On November 13, 2006, Sun released much of Java as open source software under the terms of the GNU General Public License (GPL). On May 8, 2007, Sun finished the process, making all of Java's core code available under free software/open-source distribution terms, aside from a small portion of code to which Sun did not hold the copyright. Platform Independence - This is achieved by compiling the Java language code to an intermediate representation called Java bytecode, instead of directly to platform-specific machine code. Java bytecode instructions are analogous to machine code, but are intended to be interpreted by a virtual machine (VM) written specifically for the host hardware. In brief: Java is a programming language, that allows programs to be written, that can then be run on more than one type of operating system. A program written in Java can run on Windows, UNIX, Linux etc. as long as there is a Java runtime environment installed.

Sunday, 22 July 2012

how google works???

“The software behind our search technology conducts a series of simultaneous calculations requiring only a fraction of a second. Traditional search engines rely heavily on how often a word appears on a web page. We use more than 100 signals, including our patented PageRank algorithm, to examine the entire link structure of the web and determine which pages are most important. We then conduct hypertext –matching analysis to determine which pages are relevant to the specific search being conducted. By combining overall importance and query-specific relevance, we’re able to put the most relevant and reliable results first.” – Google

Saturday, 21 July 2012

How do Java programs store paswords

How do Java programs store paswords?
Well, Java programs store passwords, by default, as character values. However, to increase security, most commercial progrms use coding algorithms to store the password as a mass of nubers and symbols that mean nothing. However, if the coding algorithm is cracked, the passwords flow out as swiftly as the ocean blue. One common beginner mistake is to code using the Unicode values, which many people don’t know, but is a very simple scheme which anybody can crack in a matter of seconds.

Friday, 6 July 2012

How does Java support animations?




 Actually, animations are nothing more than several, or just one, picture(s). What the program is actually doing is drawing a new picture, erasing the picture, and drawing yet another new picture. For example, when a ball is moving, the program would draw a ball, colored, then when it is time to move, the program would draw a ball the color of the background in the previous spot and draw another ball of a different color in a new area, thus creating the visual motion.