General

Java Program Demonstrating usage of String-buffer Class and String-builder Class

Previous Next In this article, we will create a program that uses both String-Builder and String-Buffer Class and displays the output. The main difference between these two class is that String-Builder Class is not threading safe like String-Buffer Class. String-Buffer class objects are like String objects, but it can be modified at any time because …

Java Program Demonstrating usage of String-buffer Class and String-builder Class Read More »

Basic JavaScript – Exercise 08: Alerts, Confirm and Prompt

Previous Next JavaScript pop-up boxes are very important part of web applications. JavaScript programming allows 3 types of pop-up boxes or dialog boxes. Alert boxes Confirm boxes Prompts Alert Boxes Alert boxes give immediate feedback to the user. There are many reasons to provide an alert message to users. To give them some information Give …

Basic JavaScript – Exercise 08: Alerts, Confirm and Prompt Read More »

Basic JavaScript: Exercise 02 : Output to HTML

Previous Next In JavaScript exercise 1, you printed the output directly from the JavaScript program. There was no formatting. This is the way JavaScript program works, but HTML documents are meant to present information in a human-readable format with some style information. Imagine reading plain notepad like web pages, there is no fun in that. …

Basic JavaScript: Exercise 02 : Output to HTML Read More »