JDK -
JDK is a Java development kit( software development kit)
Provided by oracle.It helps to convert .java file into .class file
It helps to compile the java program
JDK is a platform independent why because it can support any kind of OS/Linux/Mac & processor
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 fileIt'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)