What is the difference between character literals and string literals in Java?

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

631 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

How to take Backup in SAP system.

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

454 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 are classes sometimes declared final in Java?

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

507 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

1K+ 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

Information regarding function used in remote machine and their return values.

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

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

Inserting new line to the output using WS_Download in ABAP

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

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

Incrementing an integer inside loop in an ABAP program

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

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

Installing SAPUI5 on local machine using XAMPP

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

129 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 connection SAP HANA with .NET

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

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

Advertisements