Which are the Variable Types in java?

A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable’s memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. You must… Read More »

Basic Datatypes in Java

Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in the memory. Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to… Read More »

What is the Constructors?

A constructor initializes an object when it is created. It has the same name as its class and is syntactically similar to a method. However, constructors have no explicit return type. Typically, you will use a constructor to give initial values to the instance variables defined by the class, or to perform any other start-up… Read More »

Object and Classes of java

Java is an Object-Oriented Language. As a language that has the Object-Oriented feature, Java supports the following fundamental concepts − Polymorphism Inheritance Encapsulation Abstraction Classes Objects Instance Method Message Passing In this chapter, we will look into the concepts – Classes and Objects. Object − Objects have states and behaviors. Example: A dog has states –… Read More »

Basic Syntax of Java

When we consider a Java program, it can be defined as a collection of objects that communicate via invoking each other’s methods. Let us now briefly look into what do class, object, methods, and instance variables mean. Object − Objects have states and behaviors. Example: A dog has states – color, name, breed as well as… Read More »

Environment Setup In Java

In this chapter, we will discuss on the different aspects of setting up a congenial environment for Java. Local Environment Setup If you are still willing to set up your environment for Java programming language, then this section guides you on how to download and set up Java on your machine. Following are the steps… Read More »

Java Overview

Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems’ Java platform (Java 1.0 [J2SE]). The latest release of the Java Standard Edition is Java SE 8. With the advancement of Java and its widespread popularity, multiple configurations were built… Read More »

Introduction Of Java

This Java Tutorial has been prepared by well experienced Java Programmers for the Software Engineers to help them understand the basic to advanced concepts of Java Programming Language. After completing this tutorial, you will find yourself at a moderate level of expertise in Java, from where you can take yourself to the next levels. What is Java?… Read More »

JAVA

Introduction Overview Environment Setup Basic Syntax Object and Classes Constructors Basic Datatypes Variable Types Modifier Types Basic Operators Loop Control Decision Making Numbers Class Character Class Strings Class Arrays Date and Time Regular Expressions Methods Files and I/O Exceptions Inner classes Inheritance Overriding Polymorphism Abstraction Encapsulation Interfaces Packages Data Structures Collections Framework Generics Serialization Networking… Read More »

Weather.js

Weather.js is a jQuery plugin to find the information about weather details. A Simple of Weather.js example as shown below − <!DOCTYPE html> <html lang = “en”> <head> <meta charset = “UTF-8”> <meta name = “viewport” content = “width = device-width, initial-scale = 1”> <link rel = “stylesheet” href = “https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css”> <link rel = “stylesheet”… Read More »