Found 72 Articles for Java Technologies

What is Java Method Area?

Ayyan
Updated on 30-Jul-2019 22:30:21

2K+ Views

JVM has a method area common across all the threads. It contains per-class elements like constant pool, fields, method local data, method code, constructor codes etc. which are used in class and initialization of objects/interfaces.This method area gets created during JVM start-up. It is generally part of Heap area. It could be of fixed size or vary. Its memory may not be contiguous. JVM implementation can give control to programmer over Method area creation, its sizing etc. If method area memory is not sufficient to satisfy an allocation request then JVM throws OutOfMemoryError.

Java Memory Model

Alankritha Ammu
Updated on 24-Feb-2020 09:21:54

2K+ Views

Java memory model is divided between Thread Stacks (One for each thread) and a heap area.Thread Stack: It is a thread specific memory area and contains local variables, methods call information etc. JVM stacks could be of fixed size or variable size. If computation in a thread exceeds its stack size limit then JVM throws StackOverflowError and exits.HeapIt contains all the objects created during application lifecycle. The heap is created when the virtual machine starts up. Garbage collector reclaims heap storage for objects and objects are never explicitly deallocated. The JVM is not using any automatic storage management system, and ... Read More

What is the Java Runtime Environment (JRE)?

Ayyan
Updated on 25-Feb-2020 08:19:34

309 Views

JRE is Java Runtime Environment and is the machine-specific implementation of JVM. It contains libraries like rt.jar, class loaders etc which are used by JVM.

What is Java Development Kit (JDK)?

Manikanth Mani
Updated on 13-Jun-2020 13:16:30

482 Views

JDK, contains development tools and JRE.

How to configuring Java Environment on Linux?

Ayyan
Updated on 30-Jul-2019 22:30:21

271 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'Assuming you have stored your Java programs in \usr\local\myprograms\ directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export CLASSPATH=\usr\local\myprograms'.

How to configuring Java Environment on Windows?

Akshaya Akki
Updated on 13-Jun-2020 13:06:46

105 Views

Set pathAssuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, alter the 'Path' variable so that it also contains the path to the Java executable. Example, if the path is currently set to 'C:\WINDOWS\SYSTEM32', then change your path to read 'C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin'.Set ClasspathAssuming you have stored your Java programs in c:\myprograms\ directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'CLASSPATH' variable and set the path to the c:\myprograms\'.Read More

How to set JAVA_HOME for Java in Mac OS?

Manikanth Mani
Updated on 30-Jul-2019 22:30:21

533 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

How to set JAVA_HOME for Java in Linux?

Ayyan
Updated on 30-Jul-2019 22:30:21

186 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

How to set JAVA_HOME for Java in Windows?

Alankritha Ammu
Updated on 13-Jun-2020 12:49:30

664 Views

Assuming you have installed Java in c:\Program Files\java\jdk directory −Right-click on 'My Computer' and select 'Properties'.Click the 'Environment variables' button under the 'Advanced' tab.Now, add the 'JAVA_HOME' variable and set the path to the c:\Program Files\java\jdk'.

How to set Java Path in Mac OS?

Anjana
Updated on 30-Jul-2019 22:30:21

903 Views

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH'

Advertisements