Arushi has Published 141 Articles

Stack in Java Programming

Arushi

Arushi

Updated on 30-Jul-2019 22:30:23

284 Views

Stack is a subclass of Vector that implements a standard last-in, first-out stack. Stack only defines the default constructor, which creates an empty stack. Stack includes all the methods defined by Vector, and adds several of its own. Stack( ) Apart from the methods inherited from its parent ... Read More

Swap two Strings without using third user defined variable in Java

Arushi

Arushi

Updated on 30-Jul-2019 22:30:23

279 Views

In order to swap two strings i.e interchange the content of two strings we will use sub string method of string class in Java.First of all get the length of both strings before making any change in any of string.Now modify one string as concatenate both strings and assign to ... Read More

Math class methods in Java Programming

Arushi

Arushi

Updated on 30-Jul-2019 22:30:23

497 Views

The java.lang.Math class contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. Class Declaration Following is the declaration for java.lang.Math class − public final class Math extends Object Field Following are the fields for java.lang.Math class ... Read More

Print a 2 D Array or Matrix in Java Programming

Arushi

Arushi

Updated on 30-Jul-2019 22:30:23

1K+ Views

In this post we will try to print an array or matrix of numbers at console in same manner as we generally write on paper. For this the logic is to access each element of array one by one and make them print separated by a space and when row ... Read More

Global variables in Java

Arushi

Arushi

Updated on 30-Jul-2019 22:30:21

895 Views

There is no global variables support in Java. Static variables can be used as an alternate solution for global variables.

Named Capturing groups in Java Regex

Arushi

Arushi

Updated on 30-Jul-2019 22:30:21

188 Views

Java Regex Capturing Groups

What is the scope of default access modifier in Java?

Arushi

Arushi

Updated on 30-Jul-2019 22:30:20

1K+ Views

Default access modifier means we do not explicitly declare an access modifier for a class, field, method, etc. The scope of the default access modifier lies within the package. When a class or its members associated with default access modifier then. Example Variables and methods can be declared without any ... Read More

Using SAP BAPI API’s to extract information from client system

Arushi

Arushi

Updated on 30-Jul-2019 22:30:20

691 Views

BAPI is an abbreviation for Business Application Programming Interface.BAPI’s are proprietary interfaces of SAP. These provide standard access to SAP solution with all the semantic checks already present. Using BAPI interfaces, we can perform both synchronous and asynchronous processing of data.

Can access modifiers be used for local variables in Java?

Arushi

Arushi

Updated on 30-Jul-2019 22:30:20

796 Views

Yes, a local variable can be public, private, protected or default.

What is the meaning of immutable in term of String in java?

Arushi

Arushi

Updated on 30-Jul-2019 22:30:20

269 Views

In Java, immutable objects are those whose data can’t be changed or modified (once modified). String class is immutable i.e. once we create a String object its data cannot be modified.

Advertisements