Remove Element at Index in Java

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

114 Views

The removeElementAt(int index) method is used to delete the component at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously and the size of this vector is decreased by 1. Example public class VectorDemo { public static void main(String[] args) { Vector vec = new Vector(4); vec.add(4); vec.add(3); ... Read More

TCP/IP Port in SAP HANA to Access Statistics Server

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

444 Views

For Statistics server instance No: 03                         Port # 30317       Standard format: 3NN17

Select Records Based on Absolute Value Difference in SQL

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

112 Views

We can use MySQL absolute value i.e. ABS() function to select records from a table if the absolute value of the difference between two values is greater than a certain number. We are using the data from ‘Marks’ table to demonstrate it for example. Example mysql> Select * from studentmarks where abs(Hindi-English)>10; +--------+-------+---------+------+---------+-----------+ | Name | Hindi | English | Math | Physics | Chemistry | +--------+-------+---------+------+---------+-----------+ | Gaurav | 75 | 86 | 95 | 69 | 85 ... Read More

Get String Representation of Binary Value of a Number in MySQL

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

422 Views

In MySQL, BIN() function is used to get the corresponding string representation of the binary value of a number. It considers the number as a DECIMAL number. Syntax BIN(value) Here value, a BIGINT number, is the number whose binary value is to be retrieved. Example mysql> Select BIN(15); +---------+ | BIN(15) | +---------+ | 1111 | +---------+ 1 row in set (0.00 sec)

Use of Volatile Qualifier in C++

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

501 Views

volatile means two things − The value of the variable may change without any code of yours changing it. Therefore whenever the compiler reads the value of the variable, it may not assume that it is the same as the last time it was read, or that it is the same as the last value stored, but it must be read again. The act of storing a value to a volatile variable is a "side effect" which can be observed from the outside, so the compiler is not allowed to remove the act of storing a value; for example, ... Read More

In-Memory Read in SAP HANA

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

221 Views

SAP HANA In-Memory data read time is in Nano-seconds and in conventional database it is in Milli-seconds so it is 1 million times faster as compared to conventional database.

Avoid Mixing Quoted and Unquoted Values in MySQL IN Function

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

97 Views

Actually, MySQL has different comparison rules for quoted values such as strings and unquoted values such as numbers. On mixing the quoted and unquoted values in IN() function list may lead to the inconsistent result set. For example, we must not write the query with IN() function like below − Select Salary from employee where ID IN(1,’a’,2,3,’c’) Instead of this the better way to write the above query is as follows − Select Salary from employee where ID IN(‘1’,’a’,’2’,’3’,’c’)

Change Leaves Duration from Hours to Days in SAP Fiori App

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

182 Views

In general, customizing Fiori applications involves customizing the parent SAP application. So, if in the application, it defaults to hours then the Fiori app will also inherit the default behavior and show it in hours.Go ahead and change it to days, it will impact your Fiori app and the app will also start showing in days.In case you cannot afford to make a change in SAP application, then you need to handle it in a custom manner which will require you to have a custom implementation in place.

Test ABAP Classes in SAP Class Builder

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

497 Views

You can access Class Builder by using T-code: SE24 or via Repository Browser SE80 and navigate to class you want to edit. You have to ensure that you set the below parameter to the public. It is also possible that your class implements an interface. It is also possible that class implements an interface. You have to click on magnifying glass icon and you can execute both static and instance methods.

Can a Class in Java Be Both Final and Abstract?

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

2K+ Views

An abstract cannot be instantiated. Therefore to use an abstract class you need to create another class and extend the abstract class and use it. If a class is final you can’t extend it further. So, you cannot declare a class both final and abstract. Example Still if you try to do so you will get a compile time error saying “illegal combination of modifiers:” final abstract class Demo{ public final void display(){ System.out.println("Hello welcome to tutorialspoint"); } } Output C:\Sample>javac Demo.java Demo.java:1: error: illegal ... Read More

Advertisements