Latest blog tagged on "Java"

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   2 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   2 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   5 months 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   5 months 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   5 months 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   5 months 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   6 months 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   6 months ago

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

The PushbackInputStream class comes under the category of FilterInputStream classes.

By zack mathews posted   6 months 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   6 months 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   6 months 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   6 months 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.

By zack mathews posted   6 months 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   6 months 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   6 months 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   6 months 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   6 months 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   6 months 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   6 months 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   6 months 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   6 months ago

Exception Handling in Java: Printing a Stack Trace

In this post we are going to learn a very common practice developers usually follow when they are dealing with Exception handling.

By Ankit Singh posted   6 months ago

Exception Handling in Java: Asynchronous Exceptions and Important guidelines

The exceptions we have seen so far are synchronous in nature, in the sense that we know the point in the program where they occur and when they happen, and we process them immediately in the same thread.

By Ankit Singh posted   6 months ago

Class Concepts in Java: Declaring Methods

Our Point class declared here contains only fields. Now, we will add a method to the Point class which will help us understand the method declaration and calling syntax.

 Java Java  Class 
By Ailsa Singh posted   6 months ago

Inheritance in Java: Why Inheritance?

One of the major benefits of object-oriented programming is code reuse. Programmers develop lot of code over time.

By Ailsa Singh posted   6 months ago

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

Follow MindStick