What is the difference between compositions and aggregations in Java?

Sharon Christine
Updated on 30-Jul-2019 22:30:20

306 Views

In Aggregation relationship among classes by which a class (object) can be made up of any combination of objects of other classes. It allows objects to be placed directly within the body of other classes.A composition is also a type of aggregation where the relationship is restrictive i.e. If two objects are in composition, the composed object will not exist without the other.

Integrating Magneto with SAP ECC system

V Jyothi
Updated on 30-Jul-2019 22:30:20

255 Views

With the integration of SAP ERP with Magneto, you can perform bidirectional communication of orders, sales, and other business data. To check if there is an existing connector, you can reach to SAP support. There are various other vendors in the market who provides ERP-Magneto integration.Integration of ERP-Magneto provides benefit like flexibility, data synchronization, reliability, and security.You can try this link- https://ecommerce.aheadworks.com/magento-extensions/erp-integration.htmlThis says that with some customization, you can integrate your ERP solution with Magneto. For integration, your ERP provider has to implement the option to read/write the required files/data to/from the ERP system. For any ERP software integration, it ... Read More

Difference between Java SE, Java EE, and Java ME?

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

2K+ Views

Java provides three editions JSE, JEE, JME. JSE − Java Standard Edition using this, you can develop stand-alone applications. This provides the following packages − java.lang − This package provides the language basics. java.util − This package provides classes and interfaces (API’s) related to collection framework, events, data structure and other utility classes such as date. java.io − This package provides classes and interfaces for file operations, and other input and output operations. java.math − This package provides classes and interfaces for multiprecision arithmetics. java.nio − This package provides classes and interfaces the Non-blocking I/O framework for Java java.net ... Read More

How to build JCo server without using a Properties file in SAP?

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

255 Views

You can create your own implementation of DDP and then register using Environment.registerDestinationDataProvider().

How to set the first day of the week in sap.m.DatePicker's calendar?

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

196 Views

I don’t think there is any recommended way to access internal calendar in Datepicker. I would suggest you raise a function request in Openui5 using GitHub.

What is meant by Java being platform-independent?

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

468 Views

When you compile Java programs using javac compiler it generates bytecode. We need to execute this bytecode using JVM (Java Virtual machine) Then, JVM translates the Java bytecode to machine understandable code.You can download JVM’s (comes along with JDK or JRE) suitable to your operating system and, once you write a Java program you can run it on any system using JVM.

What is the difference between compile time errors and run time errors in Java?

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

629 Views

Compile time errors are syntactical errors in the code which hinders it from being compiled. Example public class Test{ public static void main(String args[]){ System.out.println("Hello") } } Output C:\Sample>Javac Test.java Test.java:3: error: ';' expected System.out.println("Hello") An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application terminates abnormally, which is not recommended, therefore, these exceptions are to be handled. Example ... Read More

Extending SAP ABAP 30 characters long limit

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

2K+ Views

For SAP ABAP tables, you can enter up to maximum 16 characters. There is a limit of up to 30 characters on use of ABAP Variables, Classes and Method.When you run SE11 you can press F1 and it will show you maximum permitted limit on SAP ABAP Table name.It is not possible to extend this limit as for this you need to make changes in Kernel.

What is meant by Java being 'write once run anywhere' language?

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

466 Views

Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on. Thus when you write a piece of Java code in a particular platform and generated an executable code .class file. You can execute/run this class file on any system the only condition is that the target system should have JVM (JRE) installed in it. In Short, If you have a ... Read More

Is it necessary that a try block should be followed by a catch block in Java?

Samual Sam
Updated on 30-Jul-2019 22:30:20

734 Views

Not necessarily catch, a try must be followed by either catch or finally block. Example import java.io.File; public class Test{ public static void main(String args[]){ System.out.println("Hello"); try{ File file = new File("data"); } } } Output C:\Sample>Javac Test.java Test.java:5: error: 'try' without 'catch', 'finally' or resource declarations try{ ^ 1 error

Advertisements