Example: int a,b,c; In this statement,comma is a separator and tells to the compiler that these (a, b, and c) are three different variables. 2) Comma (,) as an operator Sometimes we assign multiple values to a variable using comma, in that case comma is known as operator. Example...
interface C { // … } interface D extends B, C { // … } interface E { // } class Abc { // … } class Xyz extends Abc implements D, E { // … } You’ll also like: Explain the elements of the User Interface Multiple Interfaces in Java with Example Extending Interfaces in...
These categories are further classified into unary operators, binary operators and ternary operators. Statement: A Statement is that which Contains constants, variable, and also Some Operators for Example 2a+3b=146; is a Statement because in this 2, 3 and 146 are...
// Example 1 function sayHelloInFiveSeconds(name){ var prompt = "Hello, " + name + "!"; // Inner functions are put in the local scope by default, as if they were // declared with `var`. function inner(){ alert(prompt); } setTimeout(inner, 5000); // setTimeout is asynchronous...