TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Software World > Programming

What is JDK?

Programming

 
Reply
Thread Tools Display Modes
Unread 01-07-2013, 11:36 AM   #1
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 68 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


What is JDK?

what is jdk in java

Sponsored Links
shan123 is offline   Reply With Quote
Unread 01-07-2013, 11:37 AM   #2
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 77 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: What is JDK?

Java Developer Kit contains tools needed to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc…

Compiler converts java code into byte code. Java application launcher opens a JRE, loads the class, and invokes its main method.

You need JDK, if at all you want to write your own programs, and to compile the m. For running java programs, JRE is sufficient.

JRE is targeted for execution of Java files

i.e. JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.

JDK is mainly targeted for java development. I.e. You can create a Java file (with the help of Java packages), compile a Java file and run a java file
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 11:39 AM   #3
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 68 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: What is JDK?

then what jre and jvm means??
shan123 is offline   Reply With Quote
Unread 01-07-2013, 11:40 AM   #4
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 77 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: What is JDK?

JRE (Java Runtime Environment)
Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system

The Java Virtual Machine provides a platform-independent way of executing code; programmers can concentrate on writing software, without having to be concerned with how or where it will run.

If u just want to run applets (ex: Online Yahoo games or puzzles), JRE needs to be installed on the machine.

JVM (Java Virtual Machine)
As we all aware when we compile a Java file, output is not an ‘exe’ but it’s a ‘.class’ file. ‘.class’ file consists of Java byte codes which are understandable by JVM. Java Virtual Machine interprets the byte code into the machine code depending upon the underlying operating system and hardware combination. It is responsible for all the things like garbage collection, array bounds checking, etc… JVM is platform dependent.

The JVM is called “virtual” because it provides a machine interface that does not depend on the underlying operating system and machine hardware architecture. This independence from hardware and operating system is a cornerstone of the write-once run-anywhere value of Java programs.

There are different JVM implementations are there. These may differ in things like performance, reliability, speed, etc. These implementations will differ in those areas where Java specification doesn’t mention how to implement the features, like how the garbage collection process works is JVM dependent, Java spec doesn’t define any specific way to do this.
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 12:12 PM   #5
Advanced Member (250+)
Thread Starter
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 68 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: What is JDK?

platform independent means?
shan123 is offline   Reply With Quote
Unread 01-07-2013, 12:13 PM   #6
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 77 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: What is JDK?

if u compile the program u get a .class file..which can be run on any computer with any type of OS.this is the main advantage of java
sahabcse is offline   Reply With Quote
Unread 01-07-2013, 12:15 PM   #7
Senior Member (500+)
 
Join Date: Mar 2013
Location: colachel
Posts: 513
Thanks: 4
Thanked 17 Times in 16 Posts
Mood: Cool
Rep Power: 77 sahabcse is on a distinguished road

Intel

Windows 7 Linux Mac OS


Re: What is JDK?

Sponsored Links
Once the java code also known as source code is compiled, it gets converted to native code known as BYTE CODE which is portable & can be easily executed on all operating systems. Byte code generated is basically represented in hexa decimal format. This format is same on every platform be it Solaris work station or Macintosh, windows or Linux. After compilation, the interpreter reads the generated byte code & translates it according to the host machine. . Byte code is interpreted by Java Virtual Machine which is available with all the operating systems we install. so to port Java programs to a new platform all that is required is to port the interpreter and some of the library routines.

Sponsored Links
sahabcse is offline   Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 06:50 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional