본문 바로가기

반응형

java

(7)
Method Overriding VS Overloading What is the difference between overriding and overloading in Java? Simply put the difference between them is that method overloading means when methods with the same name but different parameters are usually under one class while the method overriding is when a child class manipulates a method from its parent without changing any parameters. Overloading VS Overriding Common Happens when we manip..
Lombok In Object Oriented Programming, entities are used to pass data. Entities often have fields that specify the characteristics of the entity. It is best practice to use getters and setters to prevent the fields from getting changed directly but the problem is that the getters and setters are boilerplate codes that have nothing to do with the business logic to which effort should be put. Lombok is a..
Inheritance Inheritance is one of the advantages of Object Oriented Programming. It allows us to inherit the characters and actions from its parent and add its features to them if needed. One class can only inherit from one parent and if the parent has a parent the child can also inherit the characters and actions from the ancient. HTML 삽입 미리보기할 수 없는 소스
Class A class is a blueprint that describes the features and actions of an object in Object Oriented Programming hence it is referred to as a cookie cutter. A class has fields that define the features, methods for actions, and constructors to instantiate the class. The concept is the same across all the programming languages but how to use them differs so today we will see how we can use class in Java..
Switch Like if-else, the switch produces a result or runs a certain code based on conditions. Switch provides a better readability compared to if-else. Let's see the syntax of the switch in Java HTML 삽입 미리보기할 수 없는 소스
Creating a Spring Boot Project Java is an object-oriented language that was developed in 1995 by James Gosling and it is still one of the most popular languages to develop applications. Spring is a framework for Java application development that provides various libraries. One of the downsides of using Spring is the manual configurations and server setup that can be messy and tiresome even before the actual application develo..
JavaScript Module - Text Wave Effect Let's see how we can create a wave effect. The completed code looks like the one below. To make it easy to implement this feature to any existing website, I structured this to work by adding a class name to a text element. When you add the class name 'wave-text', the effect will take effect given that you have done the necessary configurations. // wave-module.js const waveTextEl = document.query..

728x90