Write Constant Names in Java

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

752 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

Difference Between Method Overloading and Method Hiding in Java

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

1K+ Views

method hiding − When super class and the sub class contains same methods including parameters, and if they are static and, when called, the super class method is hidden by the method of the sub class this is known as method hiding. Example Live Demo class Demo{ public static void demoMethod() { System.out.println("method of super class"); } } public class Sample extends Demo{ public static void demoMethod() { System.out.println("method of sub class"); } ... Read More

Access SAP Endpoint in Apex Code

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

240 Views

I faced a similar issue earlier but it was because of a bug in JAVA security package (refer link for more details)http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7044060I just got updated myself to latest OpenJDK7 and it solved my issue. I think you can try the same and check if it helps.

Store Details in SAP MDG

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

948 Views

If you don’t want to create a custom table then you can for creating a data model with the help of reuse method. You can then save this newly created data model in staging MDG. Other option that you have is Z-table. You can create a Z-table to persist the data.Hope this helps!

What Does 'native' in Java Stand For

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

274 Views

A native method in Java is a method whose implementation is written in other languages such as c and c++.The ‘native’ keyword is used as a method to indicate that it is implemented in another language.

Use Custom Error Pages in SAP HANA

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

173 Views

You are correct as XSA supports the custom error pages but classic does not support custom error messages.In case you need to do in any way, then what you can try out is you need to parse all requests through a load balancer or a proxy and then show custom error message. And it is not a easy and maintainable approach.

Are 'this' and 'super' Keywords in Java?

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

428 Views

Yes, this and super are keywords in Java. Where ‘this’ is used as a reference of the current object and, ‘super’ is used as a reference to the superclass object.

Define Associated Type in SAP Function Module

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

890 Views

The parameter that you are using seems to be a import type and it will require an associated type in order to be of any use.You can define the table parameters for this. You can find them within the tables tab. Once you have defined them then you can use them for either export or import.Hope it works for you!

Is 'main' a Keyword in Java?

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

1K+ Views

No, main is not a keyword in Java.

Difference Between Compile-Time and Runtime Polymorphism in Java

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

1K+ Views

If we perform (achieve) method overriding and method overloading using instance methods, it is run time (dynamic) polymorphism. In dynamic polymorphism the binding between the method call an the method body happens at the time of execution and, this binding is known as dynamic binding or late binding. Example Live Demo class SuperClass{ public static void sample(){ System.out.println("Method of the super class"); } } public class RuntimePolymorphism extends SuperClass { public static void sample(){ System.out.println("Method of the ... Read More

Advertisements