Sunday 12 May 2013

Java programming language basic

Java programming language was originally developed by Sun Microsystems, which wasinitiated by James Gosling and released in 1995 as core component of Sun Microsystems.s Java platform (Java 1.0 [J2SE]).As of December 08 the latestrelease of the Java Standard Edition is 6 (J2SE).

With the advancement of Java and its wide spread popularity, multiple configurations were built to suite various types of platforms. Ex: J2EE for Enterprise Applications, J2MEfor Mobile Applications.Sun Microsystems has renamed the new J2 versions as Java SE, Java EE and Java ME respectively. Java is guaranteed to be Write Once, Run AnywhereJava is:Object Oriented : In javaeverything is an Object. Java can be easily extendedsince it is based on the Object model.Platform independent: Unlike many other programming languages including C and C++ when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code.

This byte code is distributed over the web andinterpreted by virtual Machine (JVM) on whichever platform it is being run.Simple : Java is designed to be easy to learn. If you understand the basic concept of OOP java would be easy to master.Secure : With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.Architectural- neutral :

Java compiler generates anarchitecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence Java runtime system.Portable : being architectural neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler and Java is written in ANSI C with a clean portability boundary which is a POSIX subset.Robust : Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.Multi-threaded : With Java's multi-threaded feature it is possible to writeprograms that can do many tasks simultaneously.

This design feature allows developers to construct smoothly running interactive applications.Interpreted : Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light weight process.High Performance: With the use of Just-In-Time compilers Java enables high performance.Distributed : Java is designed for the distributed environment of the internet.Dynamic : Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that canbe used to verify and resolve accesses to objects on run-time.

History of Java:James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went bythe name Green and ended up later renamed as Java, from a list of random words.Sun released the first public implementation as Java 1.0 in1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms.On 13 November 2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL).

On 8 May 2007 Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright.Tools you will need:For performing the examplesdiscussed in this tutorial, you will need a Pentium 200-MHz computer with a minimum of 64 MB of RAM (128 MB of RAM recommended).You also will need the following softwares:Linux 7.1 or Windows 95/98/2000/XP operating system.Java JDK 5

JSP vs. JavaScript JavaServer Pages (also known as JSP) is a Java based technology specifically used to help software developers serve dynamically generated web pages (such as HTML and XML), as well as other document types pertinent to the development of interactive web content. It was specifically created in order to answer the scepticism that most web developers had concerning the Java platform’s ability to give developers enough support for the web. JavaScript is a scripting language that is object oriented (that is a programming paradigm implemented through the use of objects, or data structuresthat are comprised of datafields and methods). It is used to give programmatic access to objects that are found in both client application and other applications pertinent to the running of a specific program.It was intentionally created client-side (meaning, client orientated and run) in order to provide support for dynamic websites. For all intents and purpose, JSP is a sophisticated Java servlet. JSPs are loaded into the server, and from the Java EE Web application, operated and packaged as.war or .ear file archives. It allows Java code and specificpredefined actions to communicate with static web markup content. The page that results from this interaction is compiled and executed on this specific server, and is viewed as an HTML or XML document. It is comprised of two very specific syntax styles: scriptlet and markup – a scriptlet simply being blocks of Java code that are mixed with markup, which is the standard HTML or XML. JavaScript is a Java language; however, it is of a different dialect. It makes useof the ECMASCript standard and is considered a dynamic, weakly typed, prototype based language that just so happens to have first class functions. This suggests the extent to which many different languages have hadon JavaScript; however, it was designed to appear as Java – only in a format that is more feasible for non-programmers to work with. JSP pages are required to becompiled to Java bytecode classes in order to be able tobe executed. However, this compilation only really occurs one time – each time a change takes place to the source JSP file. This is because Java is a compiled language, and not a scripting language – meaning the code must, essentially, be translated to make the JSP compatible with the server. Summary: 1. JSP is a Java-based technology used specifically in order to help software developers create dynamic web pages; JavaScript is based on Java, but was created in order to allow non-programmers the ability to work with it easily. 2. JSP must be compiled in Java bytecode in order to function properly; JavaScript is a Java language of a different dialect, and does not need to be directly translated into bytecode.

Tu hi ye mujhko bata de Chahoon main ya na Apne tu dil ka pata de Chahoon main ya na.. Tu hi ye mujhko bata de Chahoon main ya na Apne tu dil ka pata de Chahoon main ya na Itna bata doon tujhko Chahat pe apni mujhko Yun to nahi ikhtiyaar Phir bhi yeh socha dil ne Ab jo laga hoon milne Poochhoon tujhe ik baar.. o.. Tu hi ye mujhko bata de Chahoon main ya na Hmm.. Apne tu dil ka pata de Chahoon main ya.. na.. Aisi.. kabhi pehle Hui na thi khwaahishein O.. Kisi se bhi milne ki Na ki thi koshishein.. Uljhan meri suljha de Chahoon main ya na Aankhon aankhon mein jataa de Chahoon main ya na Mere chhote chhote khwaab hain Khwaabon mein geet hain Geeton mein zindagi hai Chahat hai, preet hai Abhi main na dekhoon khwaabko Jin mein na tu mile Ni khole honth maine Ab tak the jo sile Mujhko na jitna mujh pe Utna is dil ko tujh pe Hone laga aitbaar.. Tanha raahon mein apne Bunti hoon tere sapne Tujhse hua mujhko pyaar o.. Poochhoongi tujhko kabhi na Chahoon main ya na Tere khwaabon mein ab jeena Chahoon main ya na Tu hi ye mujhko bata de Chahoon main ya na Apne tu dil ka pata de Chahoon main ya na