Do I need to import the Java.lang package anytime during running a program?

Monica Mona
Updated on 30-Jul-2019 22:30:20

3K+ Views

No, java.lang package is a default package in Java therefore, there is no need to import it explicitly. i.e. without importing you can access the classes of this package. If you observe the following example here we haven’t imported the lang package explicitly but, still we are able to calculate the square root of a number using the sqrt() method of the java.lang.Math class. Example Live Demo public class LangTest { public static void main(String args[]){ int num = 100; double result = ... Read More

What is Externalizable in Java?

Lakshmi Srinivas
Updated on 30-Jul-2019 22:30:20

126 Views

Externalization is used whenever we need to customize serialization mechanism. If a class implements an Externalizable interface then, object serialization will be done using writeExternal() method.Whereas at receiver’s end when an Externalizable object is a reconstructed instance will be created using no argument constructor and then the readExternal() method is called.If a class implements only Serializable interface object serialization will be done using ObjectoutputStream.At the receiver’s end, the serializable object is reconstructed using ObjectInputStream.

Passing parameter with parenthesis via URL in SAP Open document

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

166 Views

You can enclose the parenthesis in Quotes “” and try. URL will look like below:http:///OpenDocument/opendoc/openDocument.aspx?sViewer=html&sDocName=&sType=rpt&promptex-=URI_ESCAPE("VALUE_CONTAINING_(PARENTHESIS)")

Where and how is import statement used in Java programs?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

225 Views

Wan import statement in Java is used to − Import user defined classes/Interfaces Whenever you need to access a class which is not in the current package of the program you need to import that particular class using the import statement. Example In the following example we are using the Math class to find the square root of a number therefore, first of all w should import this class using the import statement. Live Demo import java.lang.Math.*; public class Sample{ public static void main(String args[]){ System.out.println(Math.sqrt(169)); ... Read More

How can I open a VDS file with three js?

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

118 Views

Note that three.js is library and it can’t be used to open a file format. This file can’t be opened using Autocad.To know morw about three.js library, you can use this link:Getting Started with three js

Identify all duplicates irrespective of the order of the input

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

68 Views

Indeed your problem is weird as the order is not fixed otherwise it was a straightforward requirement.In order to get your task done, you need to search in all names individually and to be sure that you don’t get the entries which are super set of your search, you need to place a length check as well.For e.g.: if there exists a entry with ‘Johnny Rambo’, it should not be returned as it contains John as well as Rambo. I hope you got my pointYou can place a filter like ('%' + name1 + '%') AND field = ('%' + ... Read More

What is the difference between System.out, System.in and System.err streams in Java?

Swarali Sree
Updated on 30-Jul-2019 22:30:20

951 Views

All the programming languages provide support for standard I/O where the user's program can take input from a keyboard and then produce an output on the computer screen. Similarly, Java provides the following three standard streams:Standard Input: This is used to feed the data to user's program and usually a keyboard is used as a standard input stream and represented as System.in.Standard Output: This is used to output the data produced by the user's program and usually a computer screen is used for standard output stream and represented as System.out.Standard Error: This is used to output the error data produced ... Read More

Where is VKORG stored in SAP

Abhinanda Shri
Updated on 30-Jul-2019 22:30:20

1K+ Views

Since VKORG is related to sales, it is stored in VBAK which is header table for all the sales order. It is a mandatory field on the table so it is mapped with order and stored with the order itself.You can get the description in the TVKOT table for more details on the sales order.

Error: "invalid schema name" even if schema is present in the database in SAP HANA

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

749 Views

I think you need to mention database name in JDBC URL while connecting to the database. Try following − String server = "servername.domain.com"; String instance = "03"; String database = "TEST"; String dbUsername = "USERNAME"; String dbPassword = "xxxxxx"; String jdbcUrl = "jdbc:sap://" + server + ":3" + instance + "15/?currentschema=" + database + "&user=" + dbUsername + "&password=" + dbPassword; java.sql.Connection connection = java.sql.DriverManager.getConnection(jdbcUrl);

Controlling close events in SAP Business One Screen Painter

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

188 Views

You can make use of SP_TransactionNotification, which is one of the most common way of receiving notification of data-driven events. With the use of SP_TransactionNotification, you can edit error code returned by Transaction notification, and also prevent transaction to committed.This shows how to prevent a purchase order from adding when the base document is not provided. You can make use of SBO_SP_TransactionNotification for Screen Painter forms in SBO to avoid null values.

Advertisements