Ayyan has Published 60 Articles

How to run a java program

Ayyan

Ayyan

Updated on 13-Jun-2020 12:16:33

Compiling and running a java program is very easy after JDK installation. Following are the steps −Open a command prompt window and go to the directory where you saved the java program (MyFirstJavaProgram.java). Assume it's C:\.Type 'javac MyFirstJavaProgram.java' and press enter to compile your code. If there are no errors ... Read More

Java Program Structure

Ayyan

Ayyan

Updated on 13-Jun-2020 12:10:16

About Java programs, it is very important to keep in mind the following points.Case Sensitivity − Java is case sensitive, which means identifier Hello and hello would have different meaning in Java.Class Names − For all class names, the first letter should be in Upper Case. If several words are ... Read More

Handling errors in SAP GUI Scripting code

Ayyan

Ayyan

Updated on 12-Jun-2020 13:58:32

You can take reference from GUI Scripting help section and it can explain things in detail.It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.ValueDescriptionSSuccessWWarningEErrorA Abort I  InformationSee the below code that uses above property ... Read More

What are default-parameters for function parameters in JavaScript?

Ayyan

Ayyan

Updated on 12-Jun-2020 08:28:10

Default parameters came to handle function parameters with ease. You can easily set default parameters to allow initialization of formal parameters with default values. This is possible only if no value or undefined is passed.ExampleLive Demo                    // default is set ... Read More

What are async generator methods in JavaScript?

Ayyan

Ayyan

Updated on 12-Jun-2020 08:08:22

Async generator functions are the same like generator function. The async generator functions will return an object, whereas an async generator whose methods such as next, throw and return promises for { value, done }, instead returning directly.ExampleHere’s an example from GitHub showing function returning async generator object −async function* ... Read More

Which event occurs in JavaScript when an element is dragged completely?

Ayyan

Ayyan

Updated on 22-May-2020 11:30:29

The ondragend event triggers when an element is dragged completely.ExampleYou can try to run the following code to learn how to implement ondragend event in JavaScript.                    .drag {             float: left;           ... Read More

What is the role of scrollY property in JavaScript?

Ayyan

Ayyan

Updated on 20-May-2020 11:02:34

The scrollY property in JavaScript works the same as pageYoffset property. If you want to get the pixels the document scrolled to from the upper left corner of the window, then use the scrollY property for vertical pixels.ExampleYou can try to run the following code to learn how to work ... Read More

Is it a good practice to place all declarations at the top in JavaScript?

Ayyan

Ayyan

Updated on 20-May-2020 09:07:11

Yes, it is a good practice to place all the JavaScript declarations at the top. Let’s see an example −Example           JavaScript String match() Method                        // all the variables declared at top   ... Read More

How to write "Hello World" Program in C++?

Ayyan

Ayyan

Updated on 26-Feb-2020 10:50:53

To run the hello world program, you'll have to follow the following steps −Write a C++ programNow that you have a compiler installed, its time to write a C++ program. Let's start with the epitome of programming example's, it, the Hello world program. We'll print hello world to the screen ... Read More

Java toString() method.

Ayyan

Ayyan

Updated on 26-Feb-2020 10:02:46

The toString() method of the String class returns itself to a string.ExampleLive Demoimport java.io.*; public class Test {    public static void main(String args[]) {       String Str = new String("Welcome to Tutorialspoint.com");       System.out.print("Return Value :");       System.out.println(Str.toString());    } }OutputReturn Value :Welcome to Tutorialspoint.com

Advertisements