Ankitha Reddy has Published 75 Articles

What is runtime polymorphism or dynamic method overloading?

Ankitha Reddy

Ankitha Reddy

Updated on 05-Mar-2020 12:29:43

981 Views

Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Method overriding by a subclass is termed as runtime polymorphism. JVM determines the method to ... Read More

SAP Fiori suitable for mobile application development

Ankitha Reddy

Ankitha Reddy

Updated on 14-Feb-2020 10:42:37

122 Views

Note that sap.ui.commons is an old desktop library and sap.m is old mobile library.There are various JavaScript and CSS libraries that you can use in combination for the application development. SAPUI5 can use these libraries in combination and they are called SAPUI5 control libraries.Sap.m is the most common control library and ... Read More

How to catch exceptions in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 16-Jan-2020 09:15:08

239 Views

To catch exceptions in JavaScript, use try…catch…finally. JavaScript implements the try...catch...finally construct as well as the throw operator to handle exceptions.You can catch programmer-generated and runtime exceptions, but you cannot catch JavaScript syntax errors.ExampleYou can try to run the following code to learn how to catch exceptions in JavaScript − Live ... Read More

How to call functions in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 09-Jan-2020 06:48:02

144 Views

A function is a group of reusable code which can be called anywhere in your program. This eliminates the need of writing the same code repeatedly. It helps programmers in writing modular codes.The most common way to define a function in JavaScript is by using the function keyword, followed by ... Read More

How to break a loop in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 08-Jan-2020 08:31:10

287 Views

The break statement is used to break a loop and continue executing the code, which is after the loop.ExampleYou can try to run the following code to break a loop in JavaScriptLive Demo                          var text ... Read More

What is operator binding in Python?

Ankitha Reddy

Ankitha Reddy

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

322 Views

For expressions like − a == b first the python interpreter looks up the __eq__() method on the object a. If it finds that, then executes that with b as argument, ie, a.__eq__(b). If this method returns a NotImplemented, then it tries doind just the reverse, ie, it ... Read More

How to use sockets in JavaScriptHTML?

Ankitha Reddy

Ankitha Reddy

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

140 Views

To use sockets, consider the WebSocket interface in JavaScript. This interface enables web applications to maintain bidirectional communications with server-side processes. To enable Web applications to maintain bidirectional communications with server-side processes, this specification introduces the WebSocket interface. Here are some of the methods to workaround with Web Sockets − ... Read More

How to generate statistical graphs using Python?

Ankitha Reddy

Ankitha Reddy

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

265 Views

Python has an amazing graph plotting library called matplotlib. It is the most popular graphing and data visualization module for Python. You can start plotting graphs using 3 lines! For example, from matplotlib import pyplot as plt # Plot to canvas plt.plot([1, 2, 3], [4, 5, 1]) ... Read More

How do we specify whether a header cell is a header for a column, row, or group of columns or rows in HTML?

Ankitha Reddy

Ankitha Reddy

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

59 Views

Use the scope attribute to implement whether a header cell is a header for a column, row, or group of columns or rows in HTML − Example Live Demo table, th, td { border: 1px solid black; } Cricketers Indian Cricketers Name 1 Sachin Tendulkar 2 Virat Kohli

How to multiply large numbers using Python?

Ankitha Reddy

Ankitha Reddy

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

2K+ Views

You can multiply large numbers in python directly without worrying about speed. Python supports a "bignum" integer type which can work with arbitrarily large numbers. In Python 2.5+, this type is called long and is separate from the int type, but the interpreter will automatically use whichever is more appropriate. ... Read More

Advertisements