branching statement in Java

Kumar Varma
Updated on 30-Jul-2019 22:30:22

857 Views

Java programming language provides following types of decision making or branching statements.Java programming language provides following types of decision making statements.Sr.No.Statement & Description1if statementAn if statement consists of a boolean expression followed by one or more statements.2if...else statementAn if statement can be followed by an optional else statement, which executes when the boolean expression is false.3nested if statementYou can use one if or else if statement inside another if or else if statement(s).4switch statementA switch statement allows a variable to be tested for equality against a list of values.

Using IC_PUBLIC role in SAP HANA

John SAP
Updated on 30-Jul-2019 22:30:22

213 Views

Please note that IC_MODELER role assigned to your user means he can only create and use private Information Views. Normally IC_MODELER role also includes IC_PUBLIC role so users who has IC_MODELER role assigned, they are also granted with IC_PUBLIC role which is required to view Information views shared by other users.Please check If IC_PUBLIC role is available in that user profile, if not try adding that role separately.

Why accessing an array out of bounds does not give any error in C++?

Rishi Rathor
Updated on 30-Jul-2019 22:30:22

2K+ Views

This is due to the fact that C++ does not do bounds checking. Languages like Java and python have bounds checking so if you try to access an out of bounds element, they throw an error. C++ design principle was that it shouldn't be slower than the equivalent C code, and C doesn't do array bounds checking.So if you try to access this out of bounds memory, the behavior of your program is undefined as this is written in the C++ standard. In general, whenever you encounter undefined behavior, anything might happen. The application may crash, it may freeze, it ... Read More

IC role to create physical tables, analyze data in SAP HANA

John SAP
Updated on 30-Jul-2019 22:30:22

202 Views

To create physical tables, uploading data and creating information views IC_MODELER role is required. If these users are only assigned with IC_PUBLIC role, they can view information views created by other users but can’t create their own views.

Different Engine types in SAP HANA

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

745 Views

In SAP HANA, following engine types are available:Join Engine: This is used for attribute viewsOLAP engine: This is used for analytic viewsCalculation Engine: This is used for calculation views

How to create a Python dictionary from text file?

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

13K+ Views

Assuming a following text file (dict.txt) is present1 aaa2 bbb3 cccFollowing Python code reads the file using open() function. Each line as string is split at space character. First component is used as key and second as valued = {} with open("dict.txt") as f: for line in f:     (key, val) = line.split()     d[int(key)] = val print (d)The output shows contents of file in dictionary form{1: 'aaa', 2: 'bbb', 3: 'ccc'}

Publishing data to SAP HANA database using Information Composer

John SAP
Updated on 30-Jul-2019 22:30:22

215 Views

Once data is published to HANA database, you cannot rename the table. In this case, you have to delete the table from Schema in HANA database.

What is possible key/value delimiter in Python dictionary?

Chandu yadav
Updated on 30-Jul-2019 22:30:22

543 Views

You can use any hashable object like int, string, etc as a key in a python dict. You need to separate it from the value using the ':' delimiter. The value can be any type of object. Consecutive key value pairs must be separated by a comma.

What are the differences between struct and class in C++?

Ramu Prasad
Updated on 30-Jul-2019 22:30:22

434 Views

The members and base classes of a struct are public by default, while in class, they default to private. Struct and class are otherwise functionally equivalent.They are however used in different places due to semantics. a struct is more like a data structure that is used to represent data. class, on the other hand, is more of a functionality inclined construct. It mimics the way things are and work.

How do Python dictionary hash lookups work?

karthikeya Boyini
Updated on 30-Jul-2019 22:30:22

511 Views

Dicts are hash tables. No tree searching is used. Looking up a key is a nearly constant time(Amortized constant) operation, regardless of the size of the dict. It creates the hash of the key, then proceeds to find the location associated with the hashed value. If a collision listed address is encountered, it starts the collision resolution algorithm to find the actual value.This causes dictionaries to take up more space as they are sparse.

Advertisements