1. Java supports which form(s) of inheritance for classes?
Java classes form single-inheritance trees; interfaces allow multiple inheritance of type.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
LTIMindtree · Java
Practice Java questions specifically asked in LTIMindtree interviews – ideal for online test preparation, technical rounds and final HR discussions.
Questions
10
Tagged for this company + subject
Company
LTIMindtree
View company-wise questions
Subject
Java
Explore topic-wise practice
Go through each question and its explanation. Use this page for targeted revision just before your LTIMindtree Java round.
Java classes form single-inheritance trees; interfaces allow multiple inheritance of type.
For complete preparation, combine this company + subject page with full company-wise practice and subject-wise practice. You can also explore other companies and topics from the links below.
Instance fields get defaults; locals don’t. boolean defaults to false.
this → current instance; super → immediate parent’s members/ctor.
Template Method fixes algorithm skeleton in a base class with overridable steps; Strategy composes behavior by swapping implementations at runtime.
Consistency ensures keys that are equal hash to same bucket and behave correctly.
StringBuilder is non-synchronized and faster in single-threaded contexts.
Parent-first delegation ensures core classes loaded by bootstrap are trusted, preventing malicious shadowing; custom loaders typically delegate up before defining classes.
ConcurrentHashMap avoids a global lock to scale concurrent access; Hashtable and synchronizedMap use coarse-grained locks.
They can declare constants but not instance fields; cannot be instantiated; may extend other interfaces.
sealed ... permits ... restricts the subclassing hierarchy for better design and exhaustiveness.