Articles on Trending Technologies

Technical articles with clear explanations and examples

Checking existing password policy of SAP HANA system

SAP ABAP Expert
SAP ABAP Expert
Updated on 21-Feb-2020 1K+ Views

You can check this information under New User in SAP HANA. The below snapshot shows the New User dialog in SAP HANA Studio and the password rule that is displayed when hovering over the password field.

Read More

Setting password expire notification in SAP HANA

SAP ABAP Expert
SAP ABAP Expert
Updated on 21-Feb-2020 1K+ Views

Parameter    password_expire_warning_timeDefault Value 14 (days)Parameter definitionNotification is transmitted via the database client (ODBC or JDBC) and it is up to the client application to provide this information to the user.If you enter the value 0, the user does not receive notification that his or her password is due to expire.The system also monitors when user passwords are due to expire and issues a medium priority alert. This may be useful for technical database users since password expiration results in the user being locked, which may affect application availability. It is recommended that you disable the password lifetime check of technical ...

Read More

Using database view in SAP HANA

SAP ABAP Expert
SAP ABAP Expert
Updated on 21-Feb-2020 991 Views

A view in a database is defined as Virtual table which derives its data from one or more columns of one table or multiple tables. A view can be created using tables of one or more database and is stored in database where it is created.You can find views in SAP HANA Studio under schema name −

Read More

How can I change the default sort order of MySQL tables?

Giri Raju
Giri Raju
Updated on 21-Feb-2020 794 Views

As we know that when we use ORDER BY Clause, the default sort order of MySQL table is ascending, start with the smallest value. We can change this default order by using DESC keyword along with ORDER BY Clause. The following example will clarify this concept −>mysql> Select * from STUDENT ORDER BY Name DESC; +--------+--------+--------+ | Name   | RollNo | Grade  | +--------+--------+--------+ | Gaurav |    100 | B.tech | | Aryan  |    165 | M.tech | | Aarav  |    150 | M.SC   | +--------+--------+--------+ 3 rows in set (0.00 sec)We can see that after using the keyword DESC the default order has been changed from ascending to descending.

Read More

How can we create an unmodifiable List in Java 9?

raja
raja
Updated on 21-Feb-2020 557 Views

A list considered to be unmodifiable if the elements can't be added, removed, or replaced from a list once an unmodifiable instance of a list has created. The static factory method: List.of() provides a convenient way to create unmodifiable lists in Java 9.An instance of a list created by using the List.of() method has the following characteristics.The list returned by a factory method is conventionally immutable. It means that the elements can't be added, removed, or replaced from a list. Calling any mutator method on the List causes UnsupportedOperationException.If the contained elements of List are mutable, it may cause the ...

Read More

Importance of iterate() method of Stream API in Java 9?

raja
raja
Updated on 21-Feb-2020 497 Views

In Java 8, the iterate() method of Stream API takes the seed and the unary operator as arguments. As stream becomes infinite, it makes the developer add explicit termination conditions by using limit, findFirst, findAny and etc. In Java 9, the iterate() method of Stream API has added a new argument, a predicate that takes the condition to break the flow.Syntaxstatic Stream iterate(T seed, Predicate

Read More

What does the method removeRange(int fromIndex, int toIndex) do in java?

Srinivas Gorla
Srinivas Gorla
Updated on 20-Feb-2020 202 Views

The removeRange() method of the ArrayList class removes all of the elements from this List whose index is between fromIndex and toIndex.Exampleimport java.util.*; public class ArrayListDemo extends ArrayList{    public static void main(String[] args) {       ArrayListDemo arrlist = new ArrayListDemo();       arrlist.add(10);       arrlist.add(12);       arrlist.add(31);       System.out.println("The list:" + arrlist);       arrlist.removeRange(0,2);       System.out.println("The list after using removeRange:" + arrlist);    } }OutputThe list:[10, 12, 31] The list after using removeRange:[31]

Read More

What does the method set(int, obj o) do in java?

Abhinanda Shri
Abhinanda Shri
Updated on 20-Feb-2020 180 Views

The set() method of the ArrayList class replaces the element at the specified position in this list with the specified element.Exampleimport java.util.ArrayList; public class Sample {    public static void main(String args[]) {       ArrayList al = new ArrayList();       System.out.println("Initial size of al: " + al.size());       al.add("C");       al.add("A");       al.add("E");       al.add(1, "A2");       System.out.println("Size of al after additions: " + al.size());       System.out.println("Contents of al: " + al);       System.out.println("Size of al after deletions: " + al.size());     ...

Read More

What does the method indexOf(obj o) do in java?

Sravani S
Sravani S
Updated on 20-Feb-2020 220 Views

The indexOf(Object) method of the java.util.ArrayList class returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList(5);       arrlist.add("G");       arrlist.add("E");       arrlist.add("F");       arrlist.add("M");       System.out.println("Size of list: " + arrlist.size());       for (String value : arrlist) {          System.out.println("Value = " + value);       }     ...

Read More

What does the method size() do in java?

Abhinanda Shri
Abhinanda Shri
Updated on 20-Feb-2020 912 Views

The size() method of the class java.util.ArrayList returns the number of elements in this list i.e. the size of the list.Exampleimport java.util.ArrayList; public class ArrayListDemo {    public static void main(String[] args) {       ArrayList arrlist = new ArrayList(5);       arrlist.add(15);       arrlist.add(20);       arrlist.add(25);       arrlist.add(22);       for (Integer number : arrlist) {          System.out.println("Number = " + number);       }       int retval = arrlist.size();       System.out.println("Size of list = " + retval);    } }OutputNumber = 15 Number = 20 Number = 25 Number = 22 Size of list = 4

Read More
Showing 54881–54890 of 61,297 articles
Advertisements