Vikyath Ram has Published 176 Answers

Should a constructor always have the same name as the class in java?

Vikyath Ram

Vikyath Ram

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

Yes, the constructor should always have the same name as the class. Constructor looks like method but it is not. It does not have a return type and its name is same as the class name. Mostly it is used to instantiate the instance variables of a class. If the ... Read More

Differences between | and || operators in Java

Vikyath Ram

Vikyath Ram

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

| is a bitwise operator and compares each operands bitwise.It is a binary OR Operator and copies a bit to the result it exists in either operands.Assume integer variable A holds 60 and variable B holds 13 then  (A | B) will give 61 which is 0011 1101.Whereas || is ... Read More

What does abstract modifier in Java do?

Vikyath Ram

Vikyath Ram

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

An abstract keyword is used to declare methods abstract methods and abstract classes. Once a method is declared abstract we should not specify body for those. Example public abstract class Sample{ public abstract demo(){ } } Error Sample.java:2: error: invalid method ... Read More

Passing data from one report to another in ABAP using SUBMIT

Vikyath Ram

Vikyath Ram

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

There doesn't seem to be any error in your syntax. Please verify if you declared the variables correctly. In case they are defined correctly, try the extended syntax check to see the error. The extended check can be done by going to PROGRAM => Check => Extended Syntax Check.

Rfcabapexception error while querying a number of columns using RFC_READ_TABLE in SAP

Vikyath Ram

Vikyath Ram

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

It is not because of a number of columns but the actual total size of the fields you are querying. It should not be more than 512 bytes.  For RFC communication, the types likes DATA or STANDARD table are not supported. So the RFC_READ_TABLE function module has to convert the ... Read More

What does the method elementAt(int index) do in java?

Vikyath Ram

Vikyath Ram

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

The elementAt(int index) method is used to get the component at the specified index/location of the vector.Exampleimport java.util.Vector; public class VectorDemo {    public static void main(String[] args) {       Vector<Integer> vec = new Vector<Integer>(4);       vec.add(4);       vec.add(3);       vec.add(2); ... Read More

Advertisements