1. Default value of an uninitialized instance boolean field is:
Instance fields get defaults; locals don’t. boolean defaults to false.
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.
Instance fields get defaults; locals don’t. boolean defaults to false.
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.
Java classes form single-inheritance trees; interfaces allow multiple inheritance of type.
StringBuilder is non-synchronized and faster in single-threaded contexts.
Consistency ensures keys that are equal hash to same bucket and behave correctly.
sealed ... permits ... restricts the subclassing hierarchy for better design and exhaustiveness.
Template Method fixes algorithm skeleton in a base class with overridable steps; Strategy composes behavior by swapping implementations at runtime.
Parent-first delegation ensures core classes loaded by bootstrap are trusted, preventing malicious shadowing; custom loaders typically delegate up before defining classes.
this → current instance; super → immediate parent’s members/ctor.
They can declare constants but not instance fields; cannot be instantiated; may extend other interfaces.
ConcurrentHashMap avoids a global lock to scale concurrent access; Hashtable and synchronizedMap use coarse-grained locks.