Sum of array JavaScript | Add array elements example

Use the reduce() inbuild method to get the sum of an array in JavaScript. This method reduces the array to a single value. Note: The method will not execute the function for array elements without values. This method does not change the original array. Example of JavaScript sum array Here is demonstrated HTML example code Read More…


This keyword in Java | Method, Reference, constructor, a​nd examples

What is the “This” Keyword? Java “this” Keyword works as a reference to the current Object in the program. It can be used inside the Method or constructor of Java Class. Where use This keyword in Java? Here is list of this keyword can used to:- Refer instance variable of the current class. Invoke or initiate current class constructor. Read More…


Java vs JavaScript | Difference between | performance, syntax, future

Mostly time asked this question in the Interview – what Difference between Java vs JavaScript? So as a Developer you must have to answer this question and know about it both languages and their differences. The only one-line answer is like JavaScript is a scripting language and Java is a programming language is not sufficient Read More…


How Java Program Run | How Java Works & Compiler work

If you completed your First Java Hello world program then you must have to know how java work or How Java Program Runs internally? In this tutorial you will get detail about How java Program work and what are process step involved internally. The process Steps: We are assuming, You completed a program and click on compile Read More…




Java Delete File | Remove | If Exists | Directory with Example

In Application after use of file want a delete a file or director, but how and what are the best way to do it? In this tutorial, we will see the Java Delete File program example and little detail on it. The right way to do coding is very important. java.io.File.delete()- A Java File delete() method will use Read More…


Java Create File | New Text File | If Not Exists and examples

Creating a new file in Java is not a big task. There are several ways to do Java to create the file. When you creating a file always give the right path and the name of the file should be easily understood. Ways to Create File in Java Here are 3 ways to do it with Read More…


Java read file line by line | Text File | Scanner | Examples

Sometimes we need to Java read file line by line. For example, the text file has data of student roll number and name line by line. So how you will do it? There are many ways to do it in java. In this tutorial, you will learn about Reading file line by line in Java using Read More…


Java Write to File | Text Strings | Different ways write file examples

Many enterprises application need to write content in the file. For example, creating a report or invoice files. The problem is how you will do with Java Write to File? There are many ways to do it, In this tutorial, we will discuss different ways to java write to file with examples. Writing a file in Java ways Here Read More…