Java Identifiers
Categories: Java 8(JDK1.8) ||
In programming languages, identifiers are used for identification purposes. In Java, an identifier can be a class name, method name, variable name, or label. For example : public class Test
Categories: Java 8(JDK1.8) ||
In programming languages, identifiers are used for identification purposes. In Java, an identifier can be a class name, method name, variable name, or label. For example : public class Test
Categories: Java 8(JDK1.8) ||
Primitive Data Type: In Java, the primitive data types are the predefined data types of Java. They specify the size and type of any standard values. Java has 8 primitive data types namely byte, short,
Categories: Java 8(JDK1.8) ||
Data types are different sizes and values that can be stored in the variable that is made as per convenience and circumstances to cover up all test cases. Also, let us cover up other important ailment
Categories: Java 8(JDK1.8) ||
A Java program is a collection of objects, and these objects communicate through method calls to each other to work together. Here is a brief discussion on the Classes and Objects, Method, Instance va
Categories: Java 8(JDK1.8) ||
In Java, the main point here is that the JVM depends on the operating system – so if you are running Mac OS X you will have a different JVM than if you are running Windows or some other operating sy
Categories: Java 8(JDK1.8) ||
The meaning of platform-independent is that the java compiled code(byte code) can run on all operating systems. A program is written in a language that is a human-readable language. It may contain wor
Categories: Java 8(JDK1.8) ||
Byte codeByte code is an intermediate code between the source code and machine code. It is a low-level code that is the result of the compilation of a source code which is written in a high-level lang
Categories: Java 8(JDK1.8) ||
1. Method area: In the method area, all class level information like class name, immediate parent class name, methods and variables information etc. are stored, including static variables. There is on
Categories: Java 8(JDK1.8) ||
JVM(Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method present in a java code. JVM is a part of JRE(Java Runtime Environment).
Categories: Java 8(JDK1.8) ||
C++ Vs Java:TOPICC++JavaMemory ManagementUse of pointers, structures, unionNo use of pointers. Supports references, thread and interfaces.LibrariesComparatively available with low level functionalitie
Categories: Java 8(JDK1.8) ||
Java is an Object-Oriented programming language developed by James Gosling in the early 1990s. The team initiated this project to develop a language for digital devices such as set-top boxes, televisi
Categories: Java 8(JDK1.8) ||
The Java Development Kit (JDK) is a cross-platformed software development environment that offers a collection of tools and libraries necessary for developing Java-based software applications and appl
Categories: Java 8(JDK1.8) ||
Java is one of the most popular and widely used programming languages.Java has been one of the most popular programming languages for many years. Java is Object Oriented. However, it is not cons
Categories: PHP ||
PHP Tutorial From beginner What is PHP? • PHP stands for PHP: Hypertext Preprocessor • PHP is a server-side scripting language, like ASP • PHP scripts are executed on
Categories: Spring ||
Spring – Environment Setup Step 1 –Setup Java Development Kit (JDK) You can download the latest version of SDK from Oracle's Java site: Java SE Downloads. You will fin
Categories: Spring ||
Data Access, Integration, and Miscellaneous in Spring framework Data Access/Integration The Data Access/Integration layer consists of the JDBC, ORM, OXM, JMS and Transaction modules whose de
Categories: Spring ||
Aspect-Oriented Programming (AOP) One of the key components of Spring is the Aspect-Oriented Programming (AOP) framework. The functions that span multiple points of an application are called
Categories: Spring ||
Benefits of Using the Spring Framework Following is the list of few of the great benefits of using Spring Framework: Spring enables developers to develop enterprise-class applications
Categories: Laravel ||
Laravel Framework Architecture and CodeIgniter Bundles and composer provide number of bundle modular packaging system and dependencies. Routing - The easiest to manage and abstract
Categories: Laravel ||
Advantages of Laravel ANALYSIS Laravel offers you the following advantages when you are designing a web application based on it − The web application becomes more scalable
Categories: Laravel ||
Laravel – A Trending PHP Framework lets know about this INTRODUCTION Overview Laravel is an open-source PHP framework, which is robust and easy to understand. It follows
Categories: Java 8(JDK1.8) ||
All exception classes are subtypes of the java.lang.Exception class. The exception class is a subclass of the Throwable class. Other than the exception class there is another subclass called Error whi
Categories: Java 8(JDK1.8) ||
An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application termina
Categories: Java 8(JDK1.8) ||
A directory is a File which can contain a list of other files and directories. You use File object to create directories, to list down files available in a directory. For complete detail, check a list
Categories: Java 8(JDK1.8) ||
FileOutputStream is used to create a file and write data into it. The stream would create a file, if it doesn't already exist, before opening it for output.Here are two constructors which can be used
Categories: Java 8(JDK1.8) ||
This stream is used for reading data from the files. Objects can be created using the keyword new and there are several types of constructors available.Following constructor takes a file name as a str
Categories: Java 8(JDK1.8) ||
All the programming languages provide support for standard I/O where the user's program can take input from a keyboard and then produce an output on the computer screen. If you are aware of C or C++ p
Categories: Java 8(JDK1.8) ||
The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All these streams represent an input source and an output destination. The stream in the
Categories: Java 8(JDK1.8) ||
It is possible to define a method that will be called just before an object's final destruction by the garbage collector. This method is called finalize( ), and it can be used to ensure that an object
Categories: Java 8(JDK1.8) ||
When a class has two or more methods by the same name but different parameters, it is known as method overloading. It is different from overriding. In overriding, a method has the same method name, ty
Categories: Java 8(JDK1.8) ||
While working under calling process, arguments is to be passed. These should be in the same order as their respective parameters in the method specification. Parameters can be passed by value or by re
Categories: Java 8(JDK1.8) ||
For using a method, it should be called. There are two ways in which a method is called i.e., method returns a value or returning nothing (no return value).The process of method calling is simple. Whe
Categories: Java 8(JDK1.8) ||
A Java method is a collection of statements that are grouped together to perform an operation. When you call the System.out.println() method, for example, the system actually executes several statemen
Categories: Java 8(JDK1.8) ||
Java provides the java.util.regex package for pattern matching with regular expressions. Java regular expressions are very similar to the Perl programming language and very easy to learn.A regular exp
Categories: Java 8(JDK1.8) ||
GregorianCalendar is a concrete implementation of a Calendar class that implements the normal Gregorian calendar with which you are familiar. We did not discuss Calendar class in this tutorial, you ca
Categories: Java 8(JDK1.8) ||
You can sleep for any period of time from one millisecond up to the lifetime of your computer. For example, the following program would sleep for 3 seconds.Exampleimport java.util.*;public class Sleep
Categories: Java 8(JDK1.8) ||
To specify the time format, use a time pattern string. In this pattern, all ASCII letters are reserved as pattern letters, which are defined as the following −CharacterDescriptionExampleGEra designa
Categories: Java 8(JDK1.8) ||
Following are the three ways to compare two dates −You can use getTime( ) to obtain the number of milliseconds that have elapsed since midnight, January 1, 1970, for both objects and then compare th
Categories: Java 8(JDK1.8) ||
This is a very easy method to get current date and time in Java. You can use a simple Date object with toString() method to print the current date and time as follows −Exampleimport java.util.Date;p
Categories: Java 8(JDK1.8) ||
Java provides the Date class available in java.util package, this class encapsulates the current date and time.The Date class supports two constructors as shown in the following table.Sr.No.Constructo
Categories: Java 8(JDK1.8) ||
You can create an array by using the new operator with the following syntax −SyntaxarrayRefVar = new dataType[arraySize];The above statement does two things −It creates an array using new dataType
Categories: Java 8(JDK1.8) ||
Java provides a data structure, the array, which stores a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to
Categories: Java 8(JDK1.8) ||
You have printf() and format() methods to print output with formatted numbers. The String class has an equivalent class method, format(), that returns a String object rather than a PrintStream object.
Categories: Java 8(JDK1.8) ||
The String class includes a method for concatenating two strings −string1.concat(string2);This returns a new string that is string1 with string2 added to it at the end. You can also use the concat()
Categories: Java 8(JDK1.8) ||
Methods used to obtain information about an object are known as accessor methods. One accessor method that you can use with strings is the length() method, which returns the number of characters conta
Categories: Java 8(JDK1.8) ||
Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects.The Java platform provides the String class to create and
Categories: Java 8(JDK1.8) ||
Following is the list of the important instance methods that all the subclasses of the Character class implement −Sr.No. - Method & Description1.isLetter() - Determines whether the specified cha
Categories: Java 8(JDK1.8) ||
A character preceded by a backslash (\) is an escape sequence and has a special meaning to the compiler.The newline character (\n) has been used frequently in this tutorial in System.out.println() sta
Categories: Java 8(JDK1.8) ||
Normally, when we work with characters, we use primitive data types char.Examplechar ch = 'a';// Unicode for uppercase Greek omega characterchar uniChar = '\u039A'; // an array of charschar[] cha
Categories: Java 8(JDK1.8) ||
Normally, when we work with Numbers, we use primitive data types such as byte, int, long, double, etc.Exampleint i = 5000;float gpa = 13.65f;double mask = 125;However, in development, we come across s