Monday, April 26, 2021

Difference Between Java and JavaScript

Java vs JavaScriptJava and JavaScript are programming languages. Java is an object oriented programming language whereas JavaScript is more of a scripting language. Both can be used to make web pages more interactive. However, Java is also used to develop server side applications and standalone programming.JavaJava is an...

Wednesday, April 21, 2021

Transfer Object Pattern in Java

It is used when we want to pass data with multiple attributes in one shot from client to server. Transfer Object is a simple POJO class having getter/setter methods and is serialized so that it can be transferred over the network. Server Side business class normally fetches data...

Monday, April 19, 2021

Difference Between Package and Interface in Java

The key difference between Package and Interface in Java is that Package helps to categorize the classes methodically to access and maintain them easily while Interface helps to implement multiple inheritances and to achieve abstraction.Java is one of the most popular programming languages. The main advantage of Java...

Friday, April 16, 2021

JDK

Looking into the JDK 16 vector API

JDK 16 comes with the incubator module jdk.incubator.vector (JEP 338) which provides a portable API for expressing vector computations. In this post we will have a quick look at this new API.Note that the API is in incubator status and likely to change in future releases.Why vector operations?When...

Wednesday, April 14, 2021

Java – How to Delete Files and Folders?

Let us learn the example programs on file deletion and folder removal in java.1. Java Files Delete ExampleFirst, Use delete() method on the file object to delete the file. Returns true if the file is delete successfully and else return false if there are any failures.In the below...

Monday, April 12, 2021

Compile and run java9 module program: part2

In the previous post we saw baiscs about java 9 modules like, what is module, how to create module project, module descriptor file and so on. In this blog we will learn how to compile and run java9 module program.Recommended read: Java 9 module details: part 1Java9 Module...

Friday, April 9, 2021

Guidelines for Java code review

Having another pair of eyes scan your code is always useful. It’s helped me get better at writing cleaner code and spot mistakes faster. You need not be an expert to review someone’s code. Some experience with the programming language and a review checklist should help you get...

Wednesday, April 7, 2021

How To Make A File Read Only Or Writable In Java?

1. OverviewIn this article, We’ll learn how to make a file as read only in java. After creating the file in java, we have to specify the file property readOnly flag to true. But, we can not set this flag to true directly.File api has a utility method...

Monday, April 5, 2021

Difference Between Abstract Class and Inheritance

Abstract Class vs InheritanceAbstract class and Inheritance are two important object oriented concepts found in many object oriented programming languages like Java. Abstract class can be considered as an abstract version of a regular (concrete) class, while Inheritance allows new classes to extend other classes. Abstract class is...

Pages (26)1234567 »