You must Sign In to post a response.
  • Category: Java Programming

    Java-the generation programming language




    Basic of java

    Java is an programming language developed by sun microsystems in early 1990s. the language is very similar in syntax to C and C++. Java was started as a project called "oak". The "oak" is the name of plant. But after some time it was named as a java. It was developed by James Gostling. He is drinking the coffee when he was thinking to give new name to this language. Then he decided java because the name of the bean used in there coffee is java. The first public implementation was java 1.0 in 1995. Its one of the main feature is WORA (write once run anywhere) mean once you write you can run it anywhere.
    Java quickly became a popular programming language. Newer versions of the java programming language had multiple configurations built for different platforms. For example, J2EE for enterprise applications and J2ME for mobile applications. Java programming is best learned by those who are familiar with object oriented programming methodology.
    The program is written in cmd or notepad. The program is saved with ".java" extension. In java the program is both complied and interpreted. The program is complied as "javac programname.java" and run as "java programname". The program name is same as class name in which main function is present.

    Example:
    class ABC
    {
    public static void main(String x[])
    {
    System.out.println("hello");
    }
    }

    The program is saved as ABC.java because main function is present in ABC class.
    The first letter of "String" and " System" is capital because this is the class and the first letter of class is always capital.

    Some conventions of java are:
    1). Class name:- the first letter of every word of class name must be in Caps.
    For example- FirstClass.java
    2). Variable + functions:- first letter of every word except first word must be in caps.
    For example- equalsIgnoreCase(), equals()
    3). Constants:- all letter in caps.
  • #7687
    java is the pure object oriented language which replace the c++ because all the work done in the class. even the main function is declared under the class. there is no function declared outside the class.

  • #7688
    Dear members
    I have been working on dot net platform and I want to learn Java too but I found it difficult to study myself as I do need some time to time guidance for that.
    Can any one suggest me that if there are several good books available online so that I can study from them.
    And please clear me what is the difference between JDK and JRE?

  • #7699
    Dear members

    The best java book is "Java:The complete refrence".

    The difference between JDK and JRE is following:

    The "JDK" is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The "JRE" is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs.
    Each JDK contains one (or more) JRE's along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.

  • #7702
    Dear members
    Is it possible to make a snake game in java?
    if yes, then tell me how to make a snake game? is there any other game which will make in java?

  • #7703
    Dear members
    yes, it is possible to make a snke game in java.
    There are many game which we can make in java i.e. suduko, snake, tic toe etc.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.