Articles on Trending Technologies

Technical articles with clear explanations and examples

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

Giri Raju
Giri Raju
Updated on 30-Jul-2019 190 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.

Read More

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

Pythonista
Pythonista
Updated on 30-Jul-2019 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".

Read More

Adding system archive link in SAP HANA Studio

SAP Expert
SAP Expert
Updated on 30-Jul-2019 369 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.

Read More

How to concatenate byte array in java?

mkotla
mkotla
Updated on 30-Jul-2019 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

Read More

Information exported using export system in SAP HANA Studio

SAP Expert
SAP Expert
Updated on 30-Jul-2019 312 Views

When you use export option from main menu, it also exports the list of systems and their properties (name, description, host name, instance, and so on) is exported as an XML file to the specified location.

Read More

What does 'using namespace std' mean in C++?

Moumita
Moumita
Updated on 30-Jul-2019 12K+ Views

Consider a situation, when we have two persons with the same name, Piyush, in the same class. Whenever we need to differentiate them definitely we would have to use some additional information along with their name, like either the area, if they live in a different area or their mother’s or father’s name, etc.The same situation can arise in your C++ applications. For example, you might be writing some code that has a function called xyz() and there is another library available which is also having same function xyz(). Now the compiler has no way of knowing which version of ...

Read More

Information required to connect MS Excel to SAP HANA

SAP Expert
SAP Expert
Updated on 30-Jul-2019 260 Views

Choose SAP HANA MDX Provider from this list to connect to any MDX data source → Enter HANA system details (server name, instance, user name and password) and you need to click on Test Connection → Connection succeeded → OKIt will give you the list of all packages in drop down list that are available in HANA system. You can choose an Information view → click Next → Select Pivot table/others → OK.

Read More

How to put two public classes in a Java package.

Srinivas Gorla
Srinivas Gorla
Updated on 30-Jul-2019 503 Views

Yes. The only condition is to have one public class in separate java file.

Read More

Global variables in Java

Arushi
Arushi
Updated on 30-Jul-2019 1K+ Views

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

Read More

Atomic variables in Java

George John
George John
Updated on 30-Jul-2019 542 Views

Yes, from Java 8 onwards, java.util.concurrent.atomic package contains classes which support atomic operations on single variables preventing race conditions or do not face synchronization issues. All classes in the atomic package have get/set methods. Each set method has a happens-before relationship with any subsequent get() method call on the same variable. import java.util.concurrent.atomic.AtomicInteger; class AtomicCounter { private AtomicInteger counter = new AtomicInteger(0); public void increment() { counter.incrementAndGet(); } public void decrement() { counter.decrementAndGet(); } public int value() { return counter.get(); } }

Read More
Showing 61041–61050 of 61,297 articles
Advertisements