Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Core Java perguntas e respostas de entrevista

Test your skills through the online practice test: Core Java Quiz Online Practice Test

Pergunta 141. What is a green thread?

A green thread refers to a mode of operation for the Java Virtual Machine (JVM) in which all code is executed in a single operating system thread. If the Java program has any concurrent threads, the JVM manages multi-threading internally rather than using other operating system threads. There is a significant processing overhead for the JVM to keep track of thread states and swap between them, so green thread mode has been deprecated and removed from more recent Java implementations. Current JVM implementations make more efficient use of native operating system threads.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 142. What is a thread?

Thread is a block of code which can execute concurrently with other threads in the JVM.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 143. What is the algorithm used in Thread scheduling?

Fixed priority scheduling.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 144. What are the different level lockings using the synchronization keyword?

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 145. What are the ways in which you can instantiate a thread?

Using Thread class By implementing the Runnable interface and giving that handle to the Thread class.

class RunnableThread implements Runnable {
	Thread runner;
	
	public RunnableThread() {
	}
	
	public RunnableThread(String threadName) {
		runner = new Thread(this, threadName); // (1) Create a new thread.
		System.out.println(runner.getName());
		runner.start(); // (2) Start the thread.
	}

	public void run() {
		//Display info about this particular thread
		System.out.println(Thread.currentThread());
	}
}

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.