DEV Community

Naveen kumar
Naveen kumar

Posted on • Edited on

Day 1.. JDK introduction

JDK -

  1. JDK is a Java development kit( software development kit)
    Provided by oracle.

  2. It helps to convert .java file into .class file

  3. It helps to compile the java program

  4. JDK is a platform independent why because it can support any kind of OS/Linux/Mac & processor

  5. If we write the java code program,Jdk will check the error.
    If it's correct it will convert into .class file format.
    Otherwise it will show the error
    Eg. Error --> 3rd line error
    Correct --> it will give .class file

  6. It's is used to develop a Java applications

.java file is a readable file
.class file is a unreadable file

Compilation ---steps
1)Cmd --> java--version ( to find the JDK version) which is we installed
2) compiler -->> javac Student.java
Eg. Javac filename.java

Example :-
student.java ---student.class file
.class file is an unreadable file.

Top comments (0)