Junior Java Dev interview questions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:36 PM on 3/15/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

What is Java?

Java is a high-level, object-oriented programming language designed to be platform-independent through the Java Virtual Machine (JVM) and is widely used for enterprise-scale and mobile applications.

2
New cards

What are the main features of Java?

Java's main features include Object-Oriented: everything is an object; Platform-Independent: runs on any machine via JVM; Multithreaded: supports multithreaded programming; Robust: manages memory automatically and provides error handling.

3
New cards

What is Object-Oriented Programming (OOP)?

OOP is a programming style based on objects which contain data and code. Key principles include Encapsulation, Inheritance, Polymorphism, and Abstraction.

4
New cards

Encapsulation

The concept of wrapping data and methods that operate on that data within a single unit or class in OOP.

5
New cards

Inheritance

A mechanism in OOP where one class can inherit fields and methods from another class.

6
New cards

Polymorphism

The ability in OOP to process objects differently based on their data type or class.

7
New cards

Abstraction

The concept of hiding complex implementation details and showing only the necessary features of an object.

8
New cards

What is the difference between JDK, JRE, and JVM?

JDK is the software development kit that includes JRE, compilers, and developer tools. JRE provides libraries and JVM to run Java applications. JVM is the engine that executes Java code.

9
New cards

Heap Memory

Used for dynamic memory allocation for Java objects and JRE classes.

10
New cards

Stack Memory

Stores local variables and function call information for methods.

11
New cards

Method Area

Stores class structures like metadata, constant runtime pool, and method code.

12
New cards

Program Counter (PC) Register

Contains the address of the JVM instruction currently being executed.

13
New cards

Native Method Stack

Contains all native method information used in a Java application.

14
New cards

How do == and equals() differ?

== checks if two references point to the same memory location, while equals() checks for equivalence based on object content.

15
New cards

What is an Exception in Java?

An exception is an event disrupting the normal flow of a program, classified as Checked (e.g., IOException) or Unchecked exceptions (e.g., NullPointerException).

16
New cards

Checked Exceptions

Exceptions checked at compile-time, requiring handling (e.g., IOException, SQLException).

17
New cards

Unchecked Exceptions

Exceptions checked at runtime, typically related to logic errors (e.g., NullPointerException).

18
New cards

What is the final keyword?

In Java, final can be used with variables (cannot be changed), methods (cannot be overridden), and classes (cannot be subclassed).

19
New cards

What is the purpose of the static keyword?

The static keyword indicates that a member belongs to the type itself, allowing shared variables and methods accessible without an instance.

20
New cards

Garbage Collection in Java

The process of reclaiming unused memory automatically by the JVM, preventing memory leaks and optimizing performance.