Java Local Variable Type Inference​
Blog
TECH SHITANSHU

Java Local Variable Type Inference

Java Local Variable Type Inference Java SE 10 introduced type inference for local variables. Previously, all local variable declarations required an explicit (manifest) type on the left-hand side. With type inference, the explicit type can be replaced by the reserved type

Read More »
Java Text Blocks​
Blog
TECH SHITANSHU

Java Text Blocks

Java Text Blocks Java text block is a multi-line string literal that avoids the need for most escape sequences, automatically formats the string in a predictable way, and gives the developer control over the format when desired. History Text blocks were

Read More »
Java Switch Expressions
Blog
TECH SHITANSHU

Java Switch Expressions

Java Switch Expressions Like all expressions, java switch expressions evaluate to a single value and can be used in statements. They may contain “case L ->” labels that eliminate the need for break statements to prevent fall through. You can use a yield statement to specify the

Read More »
Java Record Classes
Blog
TECH SHITANSHU

Java Record Classes

Java Record Classes Java records classes; like an enum, a record is a restricted form of class. It declares its representation, and commits to an API that matches that representation. We pair this with another abstraction, sealed types, which can assert control over which other

Read More »
Java Pattern Matching
Blog
TECH SHITANSHU

Java Pattern Matching

Java Pattern Matching Java Pattern matching involves testing whether an object has a particular structure, then extracting data from that object if there’s a match. You can already do this with Java; however, java pattern matching introduces new language enhancements that enable

Read More »
Java sealed classes
Blog
TECH SHITANSHU

Java Sealed Classes in JDK 17

Java Sealed Classes in JDK 17 History Java Sealed Classes were proposed by JEP 360 and delivered in JDK 15 as a preview feature. They were proposed again, with refinements, by JEP 397 and delivered in JDK 16 as a preview feature. This JEP proposes to finalize Sealed Classes

Read More »
Cyclone Michaung: Heavy Rains In Chennai Today
Blog
TECH SHITANSHU

Cyclone Michaung: Heavy Rains In Chennai Today

Cyclone Michaung: Heavy Rains In Chennai Today The India Meteorological Department (IMD) predicted that the Chennai city and its neighbouring districts would experience extremely heavy rain in the next 24 hours. Flight operations at Chennai airport have been affected due to the

Read More »
Features of Java 17
Blog
TECH SHITANSHU

New Features in Java 17

The New Features Of Java 17 : Java Development Kit (JDK) 17 This blog describes some of the enhancements in Java SE 17 and JDK 17. In some cases, the descriptions provide links to additional detailed information about an issue or a

Read More »
java generics interview questions
Blog
TECH SHITANSHU

Java Generics Interview Questions and Answers

Java Generics Interview Questions and Answers Introduced by JDK 5, generics changed Java in two important ways. First, it added a new syntactical element to the language. Second, it caused changes to many of the classes and methods in the core API.

Read More »
java lambda expressions
Blog
TECH SHITANSHU

Java Lambda Expressions Interview Questions and Answers

Java Lambda Expressions Interview Questions and Answers Added by JDK 8, lambda expressions (and their related features) significantly enhance Java because of two primary reasons. First, they add new syntax elements that increase the expressive power of the language. In the

Read More »
Java abstract class
Blog
TECH SHITANSHU

Java Abstract Class Interview Questions and Answers

Java Abstract Class Interview Questions and Answers Java Abstract classes are particularly useful when there’s a need to model complex relationships between objects or adhere to specific design patterns. They enable developers to establish a contract for derived classes, ensuring consistency

Read More »
Scroll to Top