Skip to main content

Featured

7. Executing our First Java Program in BlueJ | Java Programming | Compiling and Creating java Program @techcomputergyaan Technical Magic

 Executing our First Java Program in BlueJ  We are going to discuss Comments in Java Comments: Text ignored by the compiler To write some notes for future reference To find some errors we can make some statement as comment and can compile the program and in this way we can find errors in the program. Way of writing Comments // for single line comment /* for multiple line comments */ Create our First Project in BlueJ Step 1: To open BlueJ Step 2: Create new project Step 3: Create New Class in Pascal case, I have created HelloJava Step 4: Double click on HelloJava class. A new window in BlueJ with some codes will open. You will see some comments and some codes written over here. So, I am going to delete everything and I will write only codes which is important for our first program. So, here in the above screenshot you can see I have deleted everything except our HelloJava class. Now we will write code for our main() method. Now in the main method we can write our statement. Wri...

3. Introduction to Java Programming | Java Programming Language @techcomputergyaan

 Introduction to Java Programming

We are discussing

About Java

  • It was developed at Sun Microsystem which was further purchased by Oracle in 2010.
  • It is general purpose and powerful programming language.
  • It is used for developing software that can run on mobile (applications), desktop and servers.
  • Machine independent.

Java Language Specification

Syntax and semantics of Java

  • To learn English language we need to learn some rules (Grammar).
  • To learn Java programming language we also have to learn some rules -> Syntax and semantics.

Editions of Java

Java comes in three editions

  • Java Standard Edition (SE): develop application that runs on desktop.
  • Java Enterprise Edition (EE): develop server-side applications.
  • Java Micro Edition (ME): develop applications for mobile devices.
Standard Edition is the foundation of all editions.

JDK

Java Development Kit

  • Set of programs that enable us to develop our programs.
  • Contains JRE (Java Runtime Environment) that is used to run our program.
  • JRE and JDK contain JVM(Java Virtual Machine).
  • JVM executes our java program on different machines and it makes Java program machine independent.

IDE

Integrated Development Environment

It makes our development easier and faster.
  • A software that allows us to
    • Write program
    • Compile machine code
    • Debug (find errors)
    • Build Programs to run on JVM
    • Run (Execute our program)
Popular IDE are NetBeans, Eclipse, IntelliJ Idea, etc..

API

Application Programming Interface

  •  Also known as 'library'
  • It contains pre defined java codes that can be used for developing Java programs.

Comments