Posts

Showing posts with the label Java

JDK vs JRE vs JVM

Image
In your first lesson of Java you may hear this jargon JDK, JRE, JVM. :) You may or may not be confused. when your teacher says about this Jargon, I hope you were busy with compile and execute your "Hello World " program. I wonder some time how this happens? Let's have a coffee break with jargon. Let's surf what is JDK. I have goooooogle on Google Images about JDK. Lots of places it shows the following complicated image with so many stuffs.  OMG! What is this ? Cool Let's take dig!  JDK : Java Development Kit Let's called JDK is a kit, which include what are those things need to developed and run java applications.  JDK is given as development environment for building applications, component s and applets.  You can find the latest jdk here JRE : Java Run-time Environment It contains everything you need to run Java applications in compiled form. You don't need any libraries and other stuffs. All things you n...

C Vs Java

I read an article about the compassion of C and Java programming Language. There is a article shared by with a deep research of some genious. Task C Programing Language Java Programing Language type of language function oriented object oriented basic programming unit function class = ADT portability of source code possible with discipline yes portability of compiled code no, recompile for each architecture yes, bytecode is "write once, run anywhere" security limited built-in to language compilation gcc hello.c creates machine language code javac Hello.java creates Java virtual machine language bytecode linking in the Math library gcc -lm calculate.c no special flags needed joint compilation gcc main.c helper1.c helper2.c javac Main.java - any dependent files are automatically re-compiled if needed execution a.out loads and executes program java Hello interprets byte code hello, world #include<stdio.h> int main(void) {    printf(...