- Java interview – Fundamentals
1.What modifiers are allowed for methods in an interface? Public: Interface methods are implicitly public, meaning they are accessible from anywhere. Abstract: Interface methods are implicitly abstract, indicating that they do not have an implementation in the interface itself. Default: Starting…
- Javascript Interaction Functions
Alert function The alert() method displays an alert box with a specified message and an OK button. An alert box is often used if you want to make sure information comes through to the user.The alert box takes the focus away from the current window, and forces the browser to read the message. Do not…
- Javascript Arrays
JavaScript arrays are used to store multiple values in a single variable. If you have a list of names, storing the names in single variables look like this. var name1 = “Folau”; var name2 = “Kinga”; var name3 = “Laulau”; var name4 = “Tonga”; var name5 = “Isi”; However, what if you want to loop […]
- Javascript String
JavaScript strings are primitive values. JavaScript strings are also immutable. It means that if you process a string, you will always get a new string. The original string doesn’t change. Strings are used for storing and manipulating text. To create a string, you can use single quote or double…
- Javascript Callback Function
A callback function is a function passed into another function as an argument, which is then invoked inside that function at a later time. JavaScript statements are executed line by line. However, with effects, the next line of code can be run even though the effect is not finished. This can create…