Sunday, April 19, 2015

INTRODUCTION TO JAVA PROGRAMMING


INTRODUCTION TO JAVA PROGRAMMING


¨ Introduced by [James Gosling & team-mates] at Sun Micro-Systems.
¨ Was called Oak but then introduced as Java.

¨ Purpose:-
    à Platform Independence. 
    àNetworking & Internet
    àCan be used with electronic consumer devices.

¨ Java SE (standard edition)

¨ Java EE (Enterprise Edition)

¨ Java ME (Micro edition)



How JAVA is plat-form Independent


¨ Due to Java Architecture it is plat-form independent

¨ Main features of Java Architecture:-
à Java programming language (source program created).
à Java class files
à Java Application program Interface (java API)
à Java Virtual Machine (JVM).


JAVA Architecture


JAVA Architecture


¨ Java does not have its own editor so we can use [Notepad]   to write programs.
¨ Source program is compiled using “javac” compiler in JDK     & after compilation java class file is created.
¨  These class Files are in the form of “Byte-Codes”.

Java Platform


¨JVM+API = Java platform
¨Java platform is different for different machines.

¨i.e. for UNIX, Windows , Mac are different for one another.
¨The variation in hardware environment is taken care by JVM.

¨Which makes Java programming Platform Independent.
    [ Write Once Compile Once & Run On Any Platform]


Role of JVM [Java Virtual Machine]


¨Most important component of java programming.
üJVM executes Java class files & Java API files as required to get output.
üJava API files have native methods that interact with local operating system [Unix , Mac , Windows etc].

Before you run your programs, you must compile them.

¨ compiler: Translates a computer program written in one language into another language.

¤ Java Development Kit includes a Java compiler.
¤ byte code: The Java compiler converts your source code   into a format named byte code that can be executed on   many different kinds of computers.

Compile execute java program

Feature Of JAVA 

¨ Safe
¨ Robust
¨ Multi-threaded
¨ Architecture Neutral
¨ Internet Ready
¨ Simple

Types of Java Program


¨ Using Java language two types of programs can be written.

¨ Application Programs
¨ Applet

¨ Application Programs:-


  •     Used to run program in PC under control of O.S in that machine are called application programs.

¨ Applets:-

  •     Java applets are form of Byte-codes that run in web browser using JVM and executed without any control of O.S in that machine.

  •      Used to add interactive contents to web pages , giving animations etc.

31 comments:

  1. thank you
    i hope the information on my article was helpful to you.

    ReplyDelete
  2. Nice Article! Mostly I have gathered knowledge from the blogger, because its provides more information over the books & here I can get more experienced skills from the professional, thanks for taking your to discussing this topic.
    Regards,
    ccna courses in Chennai

    ReplyDelete
  3. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    java training in chennai

    ReplyDelete
  4. Thanks a lot very much for the high your blog post quality and results-oriented help. I won’t think twice to endorse to anybody who wants and needs support about this area.
    Java Training Institute Bangalore

    ReplyDelete
  5. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    google-cloud-platform-training-in-chennai

    ReplyDelete
  6. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
    amazon-web-services-training-institute-in-chennai

    ReplyDelete
  7. Thanks a lot very much for the high quality and results-oriented help.
    http://www.trainingpune.in/oracle-apps-dba-training-in-pune.html

    ReplyDelete
  8. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Devops Training in Chennai

    Devops Training in Bangalore

    Devops Training in pune

    ReplyDelete
  9. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
    python training in OMR
    python training in Bangalore
    python training in rajajinagar

    ReplyDelete
  10. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
    AWS Training in chennai
    AWS Training in bangalore

    ReplyDelete
  11. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me
    Blueprism training in Pune

    Blueprism online training

    Blue Prism Training in Pune

    ReplyDelete
  12. Awesome..You have clearly explained …Its very useful for me to know about new things..Keep on blogging..
    Blueprism training in tambaram

    Blueprism training in annanagar

    Blueprism training in velachery

    ReplyDelete
  13. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article. thank you for sharing such a great blog with us.
    Data Science training in kalyan nagar | Data Science training in OMR
    Data Science training in chennai | Data science training in velachery
    Data science online training

    ReplyDelete
  14. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
    java training in chennai

    java training in marathahalli | java training in btm layout

    ReplyDelete
  15. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    angularjs Training in bangalore

    angularjs Training in bangalore

    ReplyDelete
  16. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.


    AWS Training in BTM Layout |Best AWS Training in BTM Layout

    AWS Training in Marathahalli | Best AWS Training in Marathahalli

    ReplyDelete
  17. Very nice posts. this could not be explained better. Thanks for sharing, Keep up the good work.

    Python training in kalyan nagar
    Java Training in Kalyan Nagar

    ReplyDelete
  18. Howdy! This article couldn't be composed any better! Perusing this post helps me to remember my past flat mate! He persistently continued lecturing about this. I'll advance this post to him. Almost certain he'll have a generally excellent perused. Much obliged to you for sharing! news updates

    ReplyDelete

  19. It's difficult to find experienced individuals about this subject, yet you seem like you hear what you're saying! Much obliged

    best interiors

    ReplyDelete