Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Way2Class
Page 2 of 17
Constructor overloading with static block in Java
The act of instantiating an object calls forth its corresponding constructor underpinning much of the functionality present in object-oriented programming. Notably, a default constructor invariably exists within any given program employing objects - created seamlessly by the compiler for effortless utilization. In this discourse, we shall delve into constructor overloading with a static block in Java. Constructor overloading is a concept of defining multiple constructors with different parameters in a class. Syntax Public class class_name { Class_name() { } Class_name(par1, par2..) { } } Using a constructor ...
Read MoreObject Pool Design Pattern
A software design pattern that is frequently used in Java programming to maximize the utilization of objects is called the Object Pool Design Pattern. The pattern controls how items are created and destroyed in a pool. The management of object production and destruction is done using the Object Pool Design Pattern. The concept behind the pattern is to accumulate reusable objects rather than making new ones each time one is required. For circumstances when the cost of producing new objects is significant, such as in network connections, database connections, or costly objects, Java programmers frequently employ the Object Pool Design ...
Read MoreMigration to Open JDK from Oracle JDK
Let's start by talking about the need for migration. Accordingly, from January 2019, enterprises will have to buy commercial licenses (i.e, from Oracle) to obtain software upgrades, as oracle declared in the year 2018. maintain oracle java, update to the most recent patch level, and pay the membership fees. You may get a sense of the price by knowing that each server core needs to be licensed, and each core costs US $25 per month. Additionally, even if there is only one Java Server in the cluster, the license price would apply to all "cores" of the server if it ...
Read MoreMeta characters in Java Regex
Regex stands for Regular Expression. A pattern may be defined using regex as an API to search or modify the Text. It is frequently employed to specify string constraints, including passwords, and email validation. Once you understand this term, you might use regex to evaluate your regular expressions. Java Regex provides three classes and one interface in java.util.regex package namely, MatchResult Interface, Matcher class, Pattern class, PatternSyntaxException class. The Java regex feature is offered via the matcher and pattern classes. Meta Characters in Java Regex Meta Characters in Java Regex works as a short code for common matching patterns. ...
Read MoreMessages, Aggregation and Abstract Classes in Java
In contemporary computer programming practices. It is typical for programming languages to incorporate Object Oriented Programming System (OOPS) as their fundamental basis. This paradigm blends methods with data resulting in beneficial outcomes for developers. Embracing OOPS enables programmers to create an accurate class and object model that works seamlessly by replicating real life scenarios effectively. Learn about messages, aggregation, and abstract classes in the OOPS paradigm in this article. What are Messages? In terms of computers, message passing refers to communication between processes. The transfer of data is an efficient means of communication in both parallel and object-oriented programming practices. ...
Read MoreLearn Java on Your Own in 20 Days- Free
When it comes to software development. Few tools are as dynamic and powerful as Java -- ideal for both small and industrial scale projects alike. Its versatility enables developers to create an extensive range of applications and systems with ease: from simple mobile apps all the way up to intricate company wide software solutions. However, If taking formal training courses isn't feasible or desirable for you right now but learning Java is still something that interests you greatly -- don't worry! There are numerous free resources accessible online that allow self learners like yourself to become proficient in no more ...
Read MoreConcurrent Programming Approach using Lambda Expressions
An important addition to Java SE 8 is the lambda expressions feature. A clear and concise expression of method interfaces is possible using expressions. The collection library is extremely helpful. Collections can be iterated, filtered and have data extracted for useful purposes. To implement functional interfaces, lambda expressions are used widely. A lot of code is saved by it. Lambdas expressions allow us to provide the implementation without having to redefine the method. Only the implementation code takes shape in this place through writing. The compiler does not create a. Because Java lambda expressions ...
Read MoreJPMS: Java Platform Module System
JPMS stands for Java Platform Module System. It is the new feature in Java 9. Our java applications and Java packages may be packaged into Java Modules with the aid of Java Module System. The Java Module allows us to designate which of the module’s packages and other Java Modules should be able to see. A Java Module also lists the Java Modules it needs in order to function. The Java Platform System is also known as Java Jigsaw or Project Jigsaw. Jigsaw's name was used at the time of its development. The main intention of developing this is to ...
Read MoreJODA- Time
JODA- Time is an API developed by joda.org which provides better classes and more effective methods for handling date and time than classes from java. util package like calendar, Gregorian calendar, date, etc. It is included in Java 8.0 with the java.time package. To include, we need to import following − import java.time.*; Basic Features of JODA- Time Some of the features of JODA- Time are mentioned below − Simple field accessors are used, such as getYear(), getDayofWeek(), and getDayofYear() It supports seven different calendar systems including, Julian, Islamic, Gregorian, Coptic, Ethiopic, Buddhist and Gregorian-Julian. Option to develop ...
Read MoreJEP Package Tool in Java
JEPs, or Java Enhancement Proposals, are ideas for enhancing the Java platform. The JEP Package Tool is one such improvement that enables programmers to package Java programs as native executables. The creation of native executables from Java programs is possible through the implementation of the JEP Package Tool by developers. Doing so grants independence to these executable files that eliminate dependency on a Java Virtual Machine (JVM) or other associated software components. The advent of this powerful tool began in Java 14 through its introduction as an experimental feature. Syntax for Using JEP Package Tool The JEP Package Tool's syntax ...
Read More