Latest blog tagged on "Java"

Final keyword in java

It can be used to define final class, final method, final fields and final variable. It can be used in many context in java. Final keyword perform a important role in java programming. Its provide facility to change a variable into constant(final variable),whose value never changed.

By Simond Gear posted   6 months ago

Introduction to Abstraction in java

Abstraction means show functionality and hide complexity. In object oriented programming functionality should be shown to user but complexity (code of the function) should be hidden for the user.

 Java Java 

Use of Access specifiers

Its also provide a path to control the visibility of members like classes, variables and methods. Access specifiers is used for classes, constructor, variable, and method.

 Java Java 

Calculator using Ext Js and Javascripts

Here are the steps to create a simple calculator using Ext Js and JavaScript which can evaluate simple arithmetic on integer numbers. Two types of inputs text and button are used here on a table within a form element and button Handlers was used to i

By Jayden Bell posted   6 months ago

Access specifier and modifier in java

Program which contains private specifier for specific function or class or datatype, it can be accessible only for that class or function. It is not accessible by other class or assemblies.

 Java Java 
By zack mathews posted   9 months ago

Comparison of java

As java and c# is the advance version of C . So, most of the syntax is same as C . But there is some variation which we are dealing in this article.

 Java Java 
By Ailsa Singh posted   9 months ago

Loop in JavaScript

The loop initialization is the first part where we initialize our counter to a starting value. The initialization is executed before the loop begins.

By Jonas Stuart posted   one year ago

JavaScript Functions

A function is defined as a group of code which can be called anywhere. This eliminates the need of writing the same code again and again. Functions enable a programmer to divide a program into a number of small functions.

By Mark Devid posted   one year ago

Decision Making In JavaScript

if statement is the statement that enables JavaScript to make decisions and execute statements only if condition is true.

By Mark Devid posted   one year ago

JavaScript Introduction

JavaScript is an easy-to-use programming language of HTML and the web. This language increases the dynamic and interactive features of web page by allowing you to check forms, perform calculation, add special effects, create security passwords, writes interactive games, customized graphics selection and many more.

By Jonas Stuart posted   one year ago

Annotations in Java: Why we use Annotations?

One of the major goals of any IDE such as NetBeans or Eclipse is to enhance ease of development. The IDE generally provides the boilerplate code for many types of applications so that the developer can focus on the core functionality of the applicati

 Java Java 
By Jonas Stuart posted   one year ago

Java I/O: Input and Output Streams

One of the important set of classes comprised in Java API is the java.io package. This is one of the core packages of the Java language and was a part of JDK 1.0.

 Java Java 
By zack mathews posted   one year ago

Java I/O: The PushbackInputStream Class (Print Calculator Utility)

The PushbackInputStream class comes under the category of FilterInputStream classes.

By zack mathews posted   one year ago

Autoboxing and Wrapper Classes in Java

J2SE 5.0 introduced a new feature called autoboxing and unboxing that automatically converts between the primitive data types and their wrapper classes. To understand this feature and appreciate its importance, we need to understand the previously us

 Java Java 
By Jonas Stuart posted   one year ago

Java I/O: Live Data Application

We will now discuss the LiveData program mentioned earlier to illustrate the use of these classes. But before that lets see the case of NYSE and NASDAQ once again from previous post:

By zack mathews posted   one year ago

Java I/O: The Byte-Oriented Stream Classes

As we can see from I/O class hierarchy diagram below, there are several more classes in this category. Although it is not possible to cover all these classes all together, we will look at how to use some of them in practical situations so that we are able to use the rest in our applications.

By zack mathews posted   one year ago

Java I/O: Reading/Writing Objects -Serialization

The Java I/O library provides classes that allow us to read or write a user-defined object from or to a stream. The two classes:

By zack mathews posted   one year ago

Java I/O: Accessing the Host File System

Here we discuss another important class in the I/O package. The java.io.File class provides an abstract representation of a file or directory on the host file system.

 Java Java 
By zack mathews posted   one year ago

Java I/O: File Concatenation

The File Concatenation program, as the name suggests, concatenates the contents of a given number of files. We specify the files on the command line as a variable argument list.

By zack mathews posted   one year ago

Java I/O: The Line Count Program

The Line Count program counts the number of lines in the specified text file. Java provides a class called LineNumberReader for this purpose. The LineNumberReader class wraps the BufferedReader class, which in turn wraps the Reader class.

By zack mathews posted   one year ago

Java I/O: File Viewer Utility

Let’s write a utility called File Viewer that accepts the name of a character file on the command line and displays its contents to the user console.

 Java Java 
By David Miller posted   one year ago

Java I/O: Character Streams and Buffered Reader/Writers

Just the way binary streams operate on binary files, the character streams operate on character files—that is, text files such as .txt, .odt, and .docx. Just the way we have several real (fully implemented) subclasses of input and output byte stream

 Java Java 
By David Miller posted   one year ago

Java I/O: Determining File Length

The simplest way to determine the length of a physical file is to open it in binary mode.When we use the byte-oriented classes based on InputStream and OutputStream, the file will be opened in binary mode.

 Java Java 
By David Miller posted   one year ago

Exception Handling in Java: Understanding throws with Example

A quick look at the program tells us that the CentralizedExceptionHandlerApp class has three methods:

By Samuel Fernandes posted   one year ago

Exception Handling in Java: Checked/Unchecked Exceptions and throws keyword

Sometimes, the checked exceptions are also called compile-time exceptions because our code would not compile if we do not handle a checked exception.

By Samuel Fernandes posted   one year ago

Don't want to miss updates? Please click the below button!

Follow MindStick