Sreemaha has Published 68 Articles

Can an anonymous class have constructors in Java?

Sreemaha

Sreemaha

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

1K+ Views

A constructor should have the name same as the class. Since anonymous inner class has no name, an anonymous inner class cannot have an explicit constructor in Java. But, Java compiler internally creates a constructor for the anonymous class.

Is there a need to import Java.lang package while running Java programs?

Sreemaha

Sreemaha

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

479 Views

The java.lang package is the default package in Java, by default, it will be imported. Therefore, there is no need to import this package explicitly. i.e. without importing you can access the classes of this package. Example If you observe the following example here we haven’t imported the lang package ... Read More

RV_INVOICE_DOCUMENT_READ not returning any data in form in SAP FM

Sreemaha

Sreemaha

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

268 Views

I think what you may be missing over here is Alpha conversion set.When you are calling a function module in SE37, it performs alpha conversions as a part of parameter processions. You might do go for internal formatting of the parameters before passing it to ABAP for further use. Read More

What is the difference between method hiding and method overriding in Java?

Sreemaha

Sreemaha

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

1K+ Views

When super class and the sub class contains same instance methods including parameters, when called, the super class method is overridden by the method of the sub class. WIn this example super class and sub class have methods with same signature (method name and parameters) and when we try to ... Read More

How do I write variable names in Java?

Sreemaha

Sreemaha

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

4K+ Views

While choosing an identifier to declare a variable in Java you need to keep the following points in mind. The name of the variable should begin with either alphabet or, an underscore (_) or, a dollar ($) sign. The identifiers used for variables must not be keywords. No spaces ... Read More

What is the difference between JavaScript and ECMAScript?

Sreemaha

Sreemaha

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

3K+ Views

JavaScriptJavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and ... Read More

Why are classes sometimes declared final in Java?

Sreemaha

Sreemaha

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

502 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[]){ ... Read More

Alter SAP standard code not working

Sreemaha

Sreemaha

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

133 Views

As you have mentioned you require access key for the change to be complete, but this key is mapped to SAP specific installation. In short, you need to retrieve this key from the SAP.I would still suggest not to go for the change. You can seek other alternatives for this. ... Read More

Previous 1 ... 3 4 5 6 7
Advertisements