Angular Disable Button Example
In this post we’ll see some examples of disabling a button in Angular. There is a disabled property of button that can be set to true or false in order to disable or enable a button.So disabling a...
View ArticleAngular One-Way Data Binding Using String Interpolation
In this article we’ll see how to do Angular one way data binding using string interpolation. As the name itself suggests one-way data binding is unidirectional and using String interpolation you can...
View ArticleAngular Property Data Binding
In the post Angular One-Way Data Binding Using String Interpolation we saw one way of data binding. In this article we’ll see how to do Angular property data binding. As the name itself suggests...
View ArticleAngular Attribute Binding With Examples
In the post Angular Property Data Binding we saw how property binding is done to the corresponding object’s property in the DOM, not to the attribute of the element. Not all HTML element attributes...
View ArticleAngular Two-Way Data Binding With Examples
Angular one way data binding provides unidirectional binding either:From component (Type Script code) to template (HTML view) in the form of String interpolation, property binding.ORFrom template (HTML...
View ArticleAngular Event Binding With Examples
In Angular one-way bindings like property binding, attribute binding flow is from Component to template but Angular event binding goes the other direction from template to component. Event binding...
View ArticleJava Program to Find The Longest Palindrome in a Given String
This post is about writing a Java program to find the longest palindrome in a given String.Logic for finding the longest palindrome in a given stringThe solution given here works on the logic that in a...
View ArticleAngular Style Binding With Examples
In this post we’ll discuss another one-way binding known as Angular style binding. Using style binding you can set styles dynamically by getting the value of style property conditionally or through a...
View ArticleAngular Class Binding With Examples
In this post we’ll discuss another one-way binding known as Angular class binding. Using class binding you can add and remove CSS classes dynamically from an element's class attribute.Angular class...
View ArticleAngular Custom Property Binding Using @Input Decorator
In the post Angular Property Data Binding we saw how to bind data to a property of an element. We can also bind a custom property of an Angular component that’s what we’ll see in this post how to bind...
View ArticleAngular Custom Event Binding Using @Output Decorator
In the post Angular event binding we saw how event binding allows you to listen and respond to the events sent by the host elements. We can also bind a custom event of an Angular component that’s what...
View ArticleHow to Add Double Quotes to a String - Java Program
You may come across a scenario where you would want to add double quotes to a String, but Java uses double quotes while initializing a String so it won't recognize that double quotes should be added to...
View ArticleHow HashMap Works Internally in Java
In this Java tutorial you'll learn how HashMap works internally in Java, which is also a favorite Java Collections interview question. Note that code snippets used here are from JDK 10.There are four...
View ArticleCreating Tar File And GZipping Multiple Files - Java Program
If you want to GZIP multiple files that can’t be done directly as you can only compress a single file using GZIP. In order to GZIP multiple files you will have to archive multiple files into a tar and...
View ArticleParquet File Format in Hadoop
Apache Parquet is a columnar storage format available to any project in the Hadoop ecosystem (Hive, Hbase, MapReduce, Pig, Spark) What is a columnar storage formatIn order to understand Parquet file...
View ArticleLambda Expressions in Java 8
Lambda expressions in Java (also known as closures) are one of the most important feature added in Java 8. Java lambda expressions provide a clear and elegant way to represent a single abstract method...
View ArticleReverse Each Word in a String - Java Program
Write a Java program to reverse a String is asked in many interviews, there is another version similar to it where developers are asked to write a Java program to reverse each word of a given String....
View ArticleFind All Permutations of a Given String - Java Program
Java program to find all the permutations of a given String can be written using both recursive and non-recursive methods. In this post we'll see both kind of solutions. Recursive is easy to code but a...
View ArticleObject Cloning in java
In this post we'll see what is Object cloning in java and what is shallow copy and deep copy in reference to Java object cloning.In Java if you assign an object variable to another variable the...
View ArticleShallow Copy And Deep Copy in Java Object Cloning
In this post we’ll see what are shallow copy and deep copy in Java with respect to Java object cloning and what are the differences between shallow copy and deep copy in Java.Object cloning in...
View Article