vanithasree

vanithasree

57 Articles Published

Articles by vanithasree

Page 6 of 6

What is meant by Java being platform-independent?

vanithasree
vanithasree
Updated on 30-Jul-2019 439 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.

Read More

Updating Data source of provider by REST API in SAP

vanithasree
vanithasree
Updated on 30-Jul-2019 239 Views

I think you are missing the basic part over here. You have modified the document but you need to save it too.If you would have noticed after you had made changes to the document. Its state would have been updated to ‘Modified’ from the previous state which could be ‘Unused’ or ‘Original’.Now you need to send a PUT request, once the PUT request is processed for the requested document, then the change (data source of the data provider) will be updated in the repository as well.

Read More

Multiple ALV grids on a single screen in SAP ABAP

vanithasree
vanithasree
Updated on 30-Jul-2019 2K+ Views

It is not possible to resize or place the grid at the particular position using function modules as ALVs are always displayed in the Fullscreen by using function modules.One of the method this can be done is that you create a screen using custom container and then use the class CL_GUI_ALV_GRID to attach the ALV grids to this container at desired positions.

Read More

What is the difference between /* */ and /** */ comments in Java?

vanithasree
vanithasree
Updated on 30-Jul-2019 830 Views

Multiline comments (/* */) are used to comment multiple lines in the source code. Example Live Demo public class CommentsExample { /* Following is the main method here, We create a variable named num. And, print its value * */ public static void main(String args[]) { //Declaring a variable named num int num = 1; ...

Read More

Are there inline functions in Java?

vanithasree
vanithasree
Updated on 30-Jul-2019 4K+ Views

If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time. Any change to an inline function could require all clients of the function to be recompiled because compiler would need to replace all the code once again otherwise it will continue with old functionality. No, Java does not provide inline functions it is typically done by the JVM at execution time.

Read More

How do I write constants names in Java?

vanithasree
vanithasree
Updated on 30-Jul-2019 775 Views

While writing the name of the constants it is suggested to write all the letters in upper case. If constant contains more than one word they should be separated by underscore (_). Example Live Demo public class ConstantsTest { public static final int MIN_VALUE = 22; public static final int MAX_VALUE = 222; public static void main(String args[]) { System.out.println("Value of the constant MIN_VALUE: "+MIN_VALUE); System.out.println("Value of the constant MAX_VALUE: "+MAX_VALUE); } } Output Value of the constant MIN_VALUE: 22 Value of the constant MAX_VALUE: 222

Read More

What is the difference between simple name, canonical name and class name in a Java class?

vanithasree
vanithasree
Updated on 30-Jul-2019 3K+ Views

Canonical name of a Java class is the name of the class along with the package. For example, the canonical name of the class File is java.io.File. You can also get the canonical name of a particular class using Java method. The class named Class provides a method getCanonicalName(), this method returns canonical name of the current class. Example Live Demo import java.lang.*; public class ClassDemo { public static void main(String[] args) { ClassDemo c = new ClassDemo(); Class cls = c.getClass(); ...

Read More
Showing 51–57 of 57 articles
« Prev 1 2 3 4 5 6 Next »
Advertisements