- Java Interview – Collection
1. What is a Collection? A Collection is a group of individual objects represented as a single unit. Java provides Collection Framework which defines several classes and interfaces to represent a group of objects as a single unit. 2. Why do we need Collection? Arrays are not dynamic. Once an array…
- 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…