Sharon Christine has Published 450 Articles

HTML DOM paddingLeft Property

Sharon Christine

Sharon Christine

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

39 Views

The HTML DOM paddingLeft property returns and add left padding to an HTML element.SyntaxFollowing is the syntax −1. Returning left paddingobject.style.paddingLeft2. Adding left paddingobject.style.paddingLeft=”value”ValuesHere, “value” can be the following −ValueDetailslengthIt defines value padding in length unit.initialIt defines padding to its default value.inheritIn this padding gets inherited from its parent element.percentage(%)It ... Read More

HTML DOM innerHTML Property

Sharon Christine

Sharon Christine

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

187 Views

The HTML DOM innerHTML property returns and allow us to modify inner HTML of an element. The inner HTML is the content.SyntaxFollowing is the syntax −1. Returning innerHTMLobject.innerHTML2. Setting inner HTMLobject.innerHTML=”value”Here, “value” represents the content or nested HTML elements.ExampleLet us see an example of innerHTML property − Live Demo ... Read More

What is channel allocation in computer network?

Sharon Christine

Sharon Christine

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

10K+ Views

When there are more than one user who desire to access a shared network channel, an algorithm is deployed for channel allocation among the competing users. The network channel may be a single cable or optical fiber connecting multiple nodes, or a portion of the wireless spectrum. Channel allocation algorithms ... Read More

JavaTuples setAt0() method for Triplet class

Sharon Christine

Sharon Christine

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

50 Views

The setAt0() method is used to set the Triplet value in JavaTuples and a copy with new value at the specified index i.e. index 0 here.Let us first see what we need to work with JavaTuples. To work with Triplet class in JavaTuples, you need to import the following package ... Read More

DecimalFormat("0.######E0") in Java

Sharon Christine

Sharon Christine

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

52 Views

DecimalFormat is a concrete subclass of NumberFormat that formats decimal numbers. Let us set DecimalFormat("0.######E0") and use the format() method as well −new DecimalFormat("0.######E0").format(298757)Since, we have used DecimalFormat class in Java, therefore importing the following package in a must −import java.text.DecimalFormat;The following is the complete example −Example Live Demoimport java.text.DecimalFormat; public ... Read More

What are Java methods equivalent to C# virtual functions?

Sharon Christine

Sharon Christine

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

207 Views

All instance methods in Java are virtual except, static methods and private methods.

Importing an object from ECM application in SAP Business Workplace

Sharon Christine

Sharon Christine

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

78 Views

Correct, importing to the business workplace and using object importer is same.

What is the super() construct of a constructor in Java?

Sharon Christine

Sharon Christine

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

282 Views

The super keyword is similar to this keyword. Following are the scenarios where a super keyword is used. It is used to differentiate the members of superclass from the members of the subclass if they have same names. It is used to invoke the superclass constructor from the subclass. ... Read More

When should I use the keyword ‘this’ in a Java class?

Sharon Christine

Sharon Christine

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

114 Views

The this is a keyword in Java which is used as a reference to the object of the current class, within an instance method or a constructor. Using this you can refer the members of a class such as constructors, variables, and methods. Example Live Demo public ... Read More

What is the difference between compositions and aggregations in Java?

Sharon Christine

Sharon Christine

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

87 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 ... Read More

Advertisements