Configure java build path in eclipse to add jars

You are here : Home / Core Java Tutorials /

In this tutorial we will learn how to Configure java build path in eclipse to add jars.


Configure java build path in eclipse and add jars file >
Right click on Java project in eclipse, and click properties.
Select Java build path,
click add external jar - browse for jar - example > give path of ojdbc6.jar, click Ok.

Detecting and fixing memory leak in java


Contents of page >
  • 1) What is memory leak in java?
  • 2) Consequences of memory leak in java>
  • 3) Scenarios where memory leak can happen in java >
    • 3.1) Static variables/ fields are not garbage collected and can cause memory leak in java >
    • 3.2) Thread Local Variables can cause memory leak in java >
    • 3.3) Memory leak while using Autoboxing and unboxing in java >

How to monitor and analyze the garbage collection in 10 ways in java


Contents of page >

1) What is monitoring and analyzing the garbage collection in java?
2) How to monitor and analyze the garbage collection in java ?
3) 10 different tools and ways that can be used to generate the garbage collection dumps and analyze it
  1. JSTACK - Java stack traces
  2. Jstat  - Java Virtual Machine Statistics Monitoring Tool
  3. JHAT - Java Heap Analysis Tool.

What is default garbage collector for Java 7, 8 and 9



Contents of page :
  • 1) What is default garbage collector for Java 9?
  • 2) What is default garbage collector for Java 8 ?
  • 3) What is default garbage collector for Java 7 ?