What are Literals in Java

Johar Ali
Updated on 30-Jul-2019 22:30:20

2K+ Views

A literal is a source code representation of a fixed value. They are represented directly in the code without any computation. Literals can be assigned to any primitive type variable. Example byte a = 68; char a = 'A' byte, int, long, and short can be expressed in decimal(base 10), hexadecimal(base 16) or octal(base 8) number systems as well. Prefix 0 is used to indicate octal, and prefix 0x indicates hexadecimal when using these number systems for literals. For example − int decimal = 100; int octal = 0144; int hexa = 0x64; String ... Read More

Is Partitioning Required in SAP HANA Tables for One Million Records

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:20

225 Views

I think you are over thinking on a potential issue. The size of tables as you said will be rarely over one million records which does not qualify it to be considered a big table. In my application we have tables which are much bigger than that but still work pretty well over time. Also, as you said that data is mainly categorized on a daily basis so, theoretically it makes sense to partition tables on dates.  It should improve the performance to some extent. But it can also lead to good number of partitions which can backfire too from ... Read More

Difference Between Integer and Floating Point Literals in Java

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

927 Views

Integer literals represent fixed integer values like 900, 12, 400, -222 etc. (with in the integer range). Whereas, floating point literals represents fractional values i.e. numbers with decimal values like 25.53, 45.66, 58.66 etc. while writing these literals we should use the notation f or F as 25.53. Example Live Demo public class StringExample { public static void main(String args[]){ int num1 = 100; float num2 = 30.0f; System.out.println("Value of integer:"+num1); System.out.println("Value of integer:"+num2); } } Output Value of integer:100 Value of integer:30.0

Usage of Subqueries in Internal Table as Condition in SAP ABAP

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

393 Views

Note that if you specify an OPTIONS parameter with parenthesis, it will show an error. When you use Where (itab)In this case, itab has only one field with type C and shouldn’t be longer than 72 characters. “Itab” must be specified in parenthesis without any space between parenthesis and table name.You should use the same condition in the internal table as a condition in ABAP source code.

Difference Between Character Literals and String Literals in Java

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

930 Views

Character literals represents alphabets (both cases), numbers (0 to 9), special characters (@, ?, & etc.) and escape sequences like , \b etc. Whereas, the String literal represents objects of String class. Example Live Demo public class LiteralsExample { public static void main(String args[]){ char ch = 'H'; String str = "Hello"; System.out.println("Value of character: "+ch); System.out.println("Value of string: "+str); } } Output Value of character: H Value of string: Hello

Take Backup in SAP System

Johar Ali
Updated on 30-Jul-2019 22:30:20

701 Views

Generally, it is not required to take the backup as SAP is very secure system and they keep the backup. But if you still want to take the backup, you would require creating a dummy destination, add the objects/your programs to transport and point it to that dummy destination and release it. Now you can keep the object s from dummy destination to any of your directory.

Why Classes are Declared Final in Java

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

644 Views

If a class is declared final, you cannot inherit it. If you try it gives you a compile-time error as − Example final class Super { private int data = 30; } public class Sub extends Sub { public static void main(String args[]){ } } Output Exception in thread "main" java.lang.Error: Unresolved compilation problem: at Sub.main(Sub.java:7)

What are Boolean Literals in Java

Amit Sharma
Updated on 30-Jul-2019 22:30:20

2K+ Views

Boolean literals represent only two values true or false. And in Java the value of 1 is assumed as true and the value of 0 is assumed as false. Example Live Demo public class Test{ public static void main(String args[]) throws Exception{ boolean bool1 = true; boolean bool2 = false; boolean bool = (25==(100/4)); System.out.println(bool1); System.out.println(bool2); System.out.println(bool); } } Output true false true

Functions Used in Remote Machine and Their Return Values

Rahul Sharma
Updated on 30-Jul-2019 22:30:20

145 Views

There is a table TFDIR which contains all the information. You can use this table with FMODE=’R’ by transaction SE16. R denotes remote functions. If you want to check the return values of the function, you can use transaction SE37 by inputting the function in the search field.

What are Tokens in Java

Johar Ali
Updated on 30-Jul-2019 22:30:20

2K+ Views

Java tokens are smallest elements of a program which are identified by the compiler. Tokens in java include identifiers, keywords, literals, operators and, separators.

Advertisements