Constructors of StringTokenizer class in Java.

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

309 Views

Following are the important constructors of the StringTokenizer class.Sr.No.Constructor & Description1StringTokenizer(String str)This constructor a string tokenizer for the specified string.2StringTokenizer(String str, String delim)This constructor constructs string tokenizer for the specified string.3StringTokenizer(String str, String delim, boolean returnDelims)This constructor constructs a string tokenizer for the specified string.

Maintaining password policy parameters in SAP HANA system

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

954 Views

Note that actual parameter of password policy section is maintained by indexserver.ini system file. It is recommended that password policy should be configured using Security editor of SAP HANA Studio however this can also be done by editing indexserver.ini file.

When are python objects candidates for garbage collection?

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

311 Views

A python object or variable will be eligible for garbage collection as soon as all references to it go out of scope or are manually deleted (del x). We would have to presume there were no references to the object anywhere else for it to be garbage collected.

Changes to indexserver.ini file auditable to maintain password policy in SAP HANA

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

377 Views

It is recommended that password policy should be configured using Security editor of SAP HANA Studio however this can also be done by editing indexserver.ini file.Note that direct changes to the indexserver.ini file cannot be audited.

Why can't static method be abstract in Java?

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

2K+ Views

A static method belongs to class not to object instance thus it cannot be overridden or implemented in a child class. So there is no use of making a static method as abstract.

How to convert List to int[] in Java?

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

1K+ Views

You can simply iterate through list and fill the array as shown below −import java.util.ArrayList; import java.util.List; public class Tester {    public static void main(String[] args) {       List list = new ArrayList();       list.add(new Integer(1));       list.add(new Integer(2));       list.add(new Integer(3));       list.add(new Integer(4));       int[] array = new int[list.size()];       for(int i=0;i

Difference between declaring a variable before or in a Java loop.

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

183 Views

Performance wise, there is hardly any difference. But it is good to keep a variable local to the scope it is used. So declaring a variable inside Java loop is generally preferred.

Why there is not do...while loop in Python?

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

2K+ Views

PEP 315 (Python Enhancement Proposal) to include do..while statement has been rejected because it doen't fit in the general format of indented block statement: indented block used by every other Python compound statement. In words of Guido Van Rossum -  "Please reject the PEP. More variations along these lines won't make the language more elegant or easier to learn. They'd just save a few hasty folks some typing while making others who have to read/maintain their code wonder what it means".

Adding system archive link in SAP HANA Studio

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

367 Views

To allow users who work in the SAP HANA studio to connect efficiently to multiple SAP HANA systems, you can manage a list of all systems in a centrally-accessible archive. Users can then simply link to this archive.

How to concatenate byte array in java?

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

3K+ Views

You ByteArrayOutputStream to write byte arrays and get the result using its toByteArray() method.import java.io.ByteArrayOutputStream; import java.io.IOException; public class Tester { public static void main(String[] args) throws IOException { byte[] a = { 1,2,3}; byte[] b = { 4,5,6}; ByteArrayOutputStream baos = new ByteArrayOutputStream(); baos.write(a); baos.write(b); byte[] c = baos.toByteArray(); for(int i=0; i< c.length ; i++){ System.out.print(c[i] +" "); } } }Output1 2 3 4 5 6

Advertisements