Siva Sai has Published 279 Articles

ViewPager Using Fragments in Android with Example

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:57:37

839 Views

The Android ViewPager widget is a vital component in building swipeable or scrollable user interfaces. It allows the user to flip left and right through pages of data, which is a common pattern seen in various applications today. In this comprehensive guide, we will explore how to use ViewPager with ... Read More

Version Enhancements in Exception Handling introduced in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:49:19

200 Views

Exception handling in Java has undergone several enhancements over the years, with each version introducing new features to make error handling more robust, easier to use, and more efficient. This article provides a comprehensive overview of these improvements, focusing on the crucial enhancements introduced in each version. It serves as ... Read More

Variance in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:43:50

155 Views

Java, with its robust object-oriented programming features, offers a multitude of mechanisms for programmers to develop flexible and efficient code. One such concept, often overlooked but critically important, is variance. Understanding variance is crucial for mastering Java, especially when working with generics and collections. This article provides an in-depth exploration ... Read More

Variables in Java Do Not Follow Polymorphism and Overriding

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:38:16

309 Views

In the world of Object-Oriented Programming (OOP), polymorphism and overriding are key concepts that lend flexibility and dynamism to programming languages. Java, being a robust OOP language, fully supports these features. However, it's crucial to understand that these characteristics apply to methods in Java and not to variables. In this ... Read More

var keyword in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:18:45

588 Views

Java is a statically-typed language known for its verbosity and strict type checking. However, with the release of Java 10, a new feature called Local-Variable Type Inference was introduced, bringing the var keyword to the language and changing the way Java developers code. This article will explore the var keyword, ... Read More

Validation in Spring Boot

Siva Sai

Siva Sai

Updated on 19-Jul-2023 19:14:42

2K+ Views

Data validation is a critical component of any application development. It ensures that only high-quality data that adheres to predefined standards gets processed. Spring Boot, a renowned framework in the Java ecosystem, offers robust and straightforward validation methods that developers can leverage. This article provides a comprehensive look at how ... Read More

Valid variants of main() in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 18:59:46

63 Views

In Java, the main() method is the entry point from where the JVM begins program execution. If you've written a Java program, you're likely familiar with the traditional main() signature: public static void main(String[] args). However, did you know that there are several valid variants of the main() method in ... Read More

Using throw, catch and instanceof to handle Exceptions in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 18:56:07

540 Views

Exception handling is a fundamental aspect of Java programming that enhances the robustness of applications and promotes a seamless user experience. Key to this is understanding how to effectively use the throw, catch, and instanceof keywords to manipulate exceptions in Java. In this article, we will delve into the usage ... Read More

Using the super Keyword to Call a Base Class Constructor in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 18:20:44

594 Views

In Java's object-oriented paradigm, inheritance plays a significant role, allowing developers to create classes that reuse, extend, and modify the behavior defined in other classes. To facilitate seamless interaction between a superclass and its subclass, Java provides the super keyword. This article will focus on understanding and effectively using the ... Read More

Using Semaphore to Protect More than One Copy of a Resource in Java

Siva Sai

Siva Sai

Updated on 19-Jul-2023 18:19:01

124 Views

In the domain of concurrent programming in Java, controlling access to shared resources is crucial. This need is often fulfilled through synchronization mechanisms such as locks and monitors. However, these tools typically only protect a single instance of a resource. What if you have multiple copies of a resource and ... Read More

Advertisements