Why are classes sometimes declared final in Java?

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

500 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

55 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

645 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

512 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

126 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

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

Changing Data Element of a column and showing description in Transaction SE16N

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

284 Views

You probably need to activate the change. Other option is by deleting the description and enter the wrong character in data element name.This will make the system show an error message since that element does not exist.Correct the DDIC element spelling. The system now considers this a big enough change to the pull in an correct description of the element.

How to use SUM function for NUMC type field?\

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

448 Views

NUMC is numeric text. As this is text, SUM function cannot be implemented as it is of type varchar in the database.There is no simple solution to do it. The one method is to copy the data to internal tables, convert the NUMC data into DEC by looping through all the rows, SUM and GROUP them and then convert back the DEC values back to NUMC values.

Advertisements