DEV Community

VIDHYA VARSHINI
VIDHYA VARSHINI

Posted on

My first step in Tech Community

Hi, I'm Vidhyavarshini, I have attended a tech meet held on 12th July 2025 in YuniQ Company in TICEL BioPark.
This was hosted by Code On JVM and it was a good experience for me as a fresher. They discussed several topics related to Java and those are given below.

  1. Multi Threading in Java
  2. Garbage Collection in JAVA

Multi threading: This allows concurrent execution of two or more parts of a program for maximum utilisation. Each thread defines a seperate part of execution.
Concurrency: Ability of a program to execute multiple parts of a program.
Thread: It is the smallest unit of a process. It can be created using two main methods : Extending the Thread class, Implementing the Runnable interface.
For creating a thread,
class MyThread extends Thread {
public void run() {
System.out.println("Thread is running...");
}
}
public class Demo {
public static void main(String[] args) {
MyThread t1 = new MyThread();
t1.start();
}
}

Platform thread: When a thread is started, it executes different work.
Dead lock: It is a situation in multithreading where two or more theads are permanently blocked, each waiting for other to release a lock.

Synchronization: To control the access of multiple threads to shared resources. It helps prevent race condition, where two or more threads try to read and write shared data at the same time, leading to inconsistent results.

Semaphore: It is a synchronization tool in Java used to control access to a shared resource by multiple threads.

Garbage Collection: Garbage Collection (GC) in Java is the process by which the Java Virtual Machine (JVM) automatically removes unused or unreferenced objects from memory to free up space and prevent memory leaks. Process of reclaiming memory.

Types of garbage collection:

  1. Serial Garbage Collection: Uses a single thread for both minor and major collections.
  2. Parallel Garbage Collection: Uses multiple threads for GC, both young and old generations.
  3. CMS Garbage Collection: Collects old generation concurrently with the application.
  4. G1 Garbage Collection: Divides heap into regions, collects most garbage first, works concurrently.

Then technical quiz were conducted and overall it was a nice experience for me in the first tech meet.


Top comments (0)