Difference Between Character Literals and String Literals in Java

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

836 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

635 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

611 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

110 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.

Insert New Line to Output Using WS Download in ABAP

Nitya Raut
Updated on 30-Jul-2019 22:30:20

960 Views

First of all, don’t use WS_DOWNLOAD as this is obsolete.You can use a character type field and set it to cl_abap_char_utilities=>cr_lf. Now use this field at places where you want to insert the new line.

Increment Integer Inside Loop in ABAP Program

Fendadis John
Updated on 30-Jul-2019 22:30:20

705 Views

You need to use the following:You are missing spaces between ls_id+1. You can also use Add 1 to ls_idIn case you are using internal tables, you can directly use SY-TABIX and SY-Index depending upon whether the loop is nested or not.

Install SAPUI5 on Local Machine Using XAMPP

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

221 Views

You can refer this link for setting up basic development environment for SAP UI5:Basic Development environment for SAPUI5To setup local Development with Eclipse, you should refer this:UI5 with Eclipse

Error while Connecting SAP HANA with .NET

Anvi Jain
Updated on 30-Jul-2019 22:30:20

193 Views

You would require installing both the 32 bit and 64 bit SAP HANA client software as Microsoft Visual operates on a 32 bit application.