Java Tutorial

SAP Java Connector (SAP JCo)

What is SAP Java Connector (SAP JCo)The SAP Java Connector (SAP JCo) is a toolkit that allows a Java application to communicate with any SAP System. It combines an easy to use API with unprecedented f

What range of ports does JCo use when accessing SAP?

JCO accesses SAP over the standard set of SAP ports used to communicate with SAPGUI. In this case, JCO uses ports 3200, 3300, and 3600 depending on how the SAP application server is configured (single

Benefit and use of the Support Package Stack XML

You have selected an SAP Support Package Stack on SAP Service Marketplace at service.sap.com/sp-stacks. On the last screen, where you have to add the list with the corresponding files to your download

JSPM Support with NW04s (Java Support Package Manager)

Java Support Package Manager (JSPM) in SPS04 and SPS05 does not support a patch process on iSeries.This tutorial explains about all distinctive characteristic of patch process for Java Support Package

Download Java JDK & Set JAVA_HOME Environment Variable in Windows 10

How to Install & Configure JDK? What is JDK? The JDK (Java Development Kit) is a software development kit which consists of libraries and tools for developing apps and running them. This com

Best Java Online Compiler

Online compilers or IDE are tools which allow us to compile and execute our source code of various programming language such as java, python, c++ etc.This tutorial explains the features of top online

Downloading SAP JVM Switch Tool and SAPJVM 4

Downloading SAP JVM Switch Tool and SAP JVM 4 You want to replace the vendor JDK 1.4.2 of your SAP system with the SAP JVM 4. Before you start get a copy of the latest documentation available at

Variable Types and Data types in Java

JAVA Variable type & Datatype  Summary of this Tutorial This tutorial explains what is Variable type and Data type with their examples. It also explains different types o

How Java Works?

In this tutorial, we will learn about how a java program works, what is compiler and interpreter and how codes are executed in java programming language.  How Does Java Programming Language Wo

Advertisement

Run Java Program from Command Prompt

In this tutorial, we are going to learn how to write a JAVA program from a command prompt by typing the commands. We must have JDK installed in our computer system before running the JAVA program i

Packages in Java

What is package Package in is a structure which organizes various class files in Java into different folders according to their functionality or categories by user, for example, all the java.io cla

Polymorphism in Java

What is Polymorphism? Polymorphism is the ability of an object to have a different form. So polymorphism literally means the word polymorphism means having different forms and whenever you define a

Eclipse IDE (Integrated Development Environment) Download & Installation

How to create project on Eclipse IDE This tutorial is about downloading and installing an IDE (Integrated Development Environment) Eclipse in our system and how to create a project on eclipse

Basic Java Program using Eclipse IDE

In this tutorial, we will learn to write a simple basic JAVA program using IDE Eclipse 1) In the Eclipse IDE create a new project by File -> New -> Project 2) After creating a new p

Java Simple Calculator Program

In this tutorial, you will learn how to make a simple calculator program in java to perform basic mathematical operations like addition, subtraction, division, and multiplication according to the user

Error: Could not find or load main Class

What is Java could not find or load main class? The Error Could not find a class or load the main class that occurs when a program is running, but the main class cannot be found or loaded. In this

Java Program for Palindrome

What is Palindrome Number and String? A palindromic number is a kind of number which remains the same even after its digit is reversed for example 121, 1551 etc are palindrome numbers bec

Difference between AWT and Swing

Java programmers are often confused about the difference between AWT and Swing components, the features of AWT and Swing, and the functionalities of both. While Swing is a collection of program com

Association, Aggregation and Composition in Java

This article is focused on three of the most important OOP concepts in Java, namely association, composition, and aggregation. Although they are related concepts, there are some differences in the way

Difference between Array and ArrayList

In case you have been confused about the difference between Array and ArrayList, then what follows is undoubtedly for you. Both are used for storing elements which can be objects. Arrays have a f

Java.util.Scanner.hasNext() Method

What is hasNext() method in Java? The hasNext() is a method of  java.util.Scanner class, which returns true if this scanner has another token in its input. The hasNext() method can be

How to Find Square Root in Java

Find Square Root in Java To find out the square root of any number in you can use the following methods: Using Math.sqrt() Function Using Custom Function Without using any function

Difference between Abstract Class and Interface

Before we begin with the differences between an abstract class and interface in java, it is important to understand the meaning of the term abstraction. Abstraction pertains to concealing the internal

Create Hangman Game in Java using Simple Code

What is the Hangman Game? Hangman is a classic letter guessing game in which you have to guess the word represented by a series of dashes. The player has a limited number of guesses to identify the

Command-line Argument in Java

The command-line argument is a concept where users can pass some information as a string at the time of program execution. The information given at the time of execution remains stored in the string a

Anagram Java Program Example

What is an Anagram? Two sets of a string are said to be anagram if they contain exactly the same characters but in a different order. for example:  Silent and Listen are a

JAVA Program to Convert Decimal to Binary

In this tutorial, you will learn how to convert decimal to binary in JAVA using custom and toBinaryString() method and a custom method.  Let us look at an example,  Decimal number:

Remove Duplicates from Array in JAVA

In this tutorial you will learn how to remove duplicates from array in java using following method: Remove duplicates from Sorted Array Remove duplicates from Unsorted Array Using Java Linke

Java String length() method with Example Program

What is Java String Length Function? The function String Length() is used to find the length of a string in Java. This string Length() returns the number of characters present in any string which i

Generate Random Number in Java

Java Math.random() method is math function used to generate and return pseudorandom double type numbers with a positive sign, that is greater than or equal to 0.0 and less than 1.0 When we call Mat

'Cannot Find Symbol' Compile Error in Java

What is 'Cannot find symbol' Java Error A 'Cannot find symbol' in Java is a compilation error that occurs when a compiler cannot find what an identifier refers to, for example,

Java Code for Rock Paper Scissors Game

In this tutorial, you will learn how to create Rock, Paper and Scissor game in Java Programming Language where one player will be Computer and the other player is User. This article contains simple so

Could not reserve enough space for object heap

Newbie and experienced programmers have faced this error at some point of their lives – “Could not reserve enough space for object heap”. This is irritating when you have some real w

Adding a Newline to a String in Java

Generating text-based output and string formatting is a common practice for programmers and software developers. In almost all situations, while creating any string as output, programmers usually need

How to Print an Array in Java?

Java arrays allow programmers to keep data of similar types. This homogenous data structure stores data in a contiguous memory location. Printing the array elements gives us the visibility of the valu

Java String is NULL, Empty or Whitespace

In the following sections of this Java article, we will discuss how to check whether a string is empty, null, or whitespace. This article will also highlight how to figure out the difference between t

Check Kernel version of J2EE Engine

How to check kernel version of J2EE Engine?Two types of the kernel are in SAP NetWeaver Java system: Native Kernel Java KernelNative Kernel: Native Kernel is executables of java startup framework whic

SUM Restart system for Java only failing

The topology is dual stack, the JAVA UME exist in the ABAP stack. However during the downtime, the ABAP and the JAVA stack function on different instance numbers.  During the upgrade, SUM crea

Difference between Error and Exception with Comparison Chart

In Java, java.lang.Exception and java.lang.Error belong to the class java.lang.Throwable class. However, there are some basic differences that exist in between these two sub-classes. While errors are

3 Methods to Reverse an Array in Java

What is Array Reverse in Java? To implement array reverse in Java Programming, the array size and thereafter the array elements have to be entered by the user. In the next step, the array elements

Difference between Throw and Throws

‘Throw’ and ‘throws’ would seem similar in general life having a difference of tenses only. However, in the programming language, Java, these two are very different from each o

Difference between Comparable and Comparator

In Java, you can write your own programs if you want to sort a list of items. You might have a collection class such as ArrayList or HashSet. In this case, if you want to sort the objects stored in th

BMI Calculator in Java

What is BMI? BMI or Body Mass Index is body mass measurement of an individual based on their height and weight. Using BMI a person can be classified into underweight, normal, overweight or obese et

Java program to calculate GCD of two numbers

GCD (Greatest Common Divisor) also known as HCF (Highest Common Factor) of two or more integers is the largest positive number which exactly divides each and every input integers. In Java GCD

Java String charAt() method

The Java String charAt() method returns the char value (character) at the specified index number. The index value should be between 0 and (string length-1); otherwise, the method will throw IndexOutOf

What is a NullPointerException, and How to Fix It?

In Java, the java.lang.NullPointerException is a popular exception that is faced by programmers while working on web applications and programs. The error is raised when the code tries to access a refe

Super Keyword in Java

As we all know, Java is rich in keywords and is a pure object-oriented programming language; in this article, we will get to know about the keyword Super. If you are not familiar with Child class and

Static Keyword in Java

The entwinement of keywords with variables in Java plays a significant role. In total, there are fifty-seven keywords in Java. Among them, the static keyword plays a vital role in memory management. P

BigInteger Class in Java

Java contains built-in or primitive data that deals with the type and size a variable can take in order to perform mathematical operations. But, sometimes, they are not capable enough to hold calculat

How to Download a File from a URL in Java

Are you looking to create your very own application that can download any file with a single click? If you want such a feature in your Java application, you are in the right place. Many developers req