Backend track

Java interview questions for freshers

Panel-ready Java Specialist questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

226 Qs
5 Easy JVM Backend

What is garbage collection in Java at a high level?

Short take

Simple meaning

Garbage collection automatically reclaims heap objects that are no longer reachable from GC roots such as stack frames and static fields.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
10 Easy OOP Backend

How is abstraction different from encapsulation?

Short take

Simple meaning

Abstraction is about showing a simple interface and hiding complexity, for example List versus the array inside ArrayList.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
13 Easy OOP Backend

Explain polymorphism with a campus-style Java example.

Short take

Simple meaning

If Payment is an interface and UpiPayment and CardPayment both implement pay(), a checkout service can accept Payment and call pay() without knowing the concrete type.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
18 Easy Collections Backend

How is HashMap different from Hashtable?

Short take

Simple meaning

Hashtable is synchronized and does not allow null keys or null values, which made it the old thread-safe map.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Page 1 of 4 Next
Chat with us