Articles on Trending Technologies

Technical articles with clear explanations and examples

Counting number of characters in text file using java

karthikeya Boyini
karthikeya Boyini
Updated on 19-Jun-2020 6K+ Views

We can read characters in a file using BufferedReader class of Java. See the example below −ExampleConsider the following text file in the classpath.test.txtThis is Line 1 This is Line 2 This is Line 3 This is Line 4 This is Line 5 This is Line 6 This is Line 7 This is Line 8 This is Line 9 This is Line 10Tester.javaimport java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; public class Tester {    private static final String FILE_PATH = "data.txt";    public static void main(String args[]) throws IOException {       ...

Read More

Using Operators in Analytic Privilege in SAP HANA

John SAP
John SAP
Updated on 19-Jun-2020 174 Views

You have the following Operators that can be used to define restrictions

Read More

Limitations of Database Management System

Kristi Castro
Kristi Castro
Updated on 19-Jun-2020 20K+ Views

Database Management System is quite useful compared to the file based management system. However, it does have some disadvantages. Some of those are as follows −More CostlyCreating and managing a database is quite costly. High cost software and hardware is required for the database. Also highly trained staff is required to handle the database and it also needs continuous maintenance. All of these ends up making a database quite a costly venture.High ComplexityA Database Management System is quite complex as it involves creating, modifying and editing a database. Consequently, the people who handle a database or work with it need ...

Read More

File-based Data Management System

Kristi Castro
Kristi Castro
Updated on 19-Jun-2020 18K+ Views

The systems that are used to organize and maintain data files are known as file based data systems. These file systems are used to handle a single or multiple files and are not very efficient. FunctionalitiesThe functionalities of a File-based Data Management System are as follows −A file based system helps in basic data management for any user.The data stored in the file based system should remain consistent. Any transactions done in the file based system should not alter the consistency property. The file based system should not allow any illegal or potentially hazardous operations to occur on the data.The file based ...

Read More

Why do we need a Database

Kristi Castro
Kristi Castro
Updated on 19-Jun-2020 18K+ Views

A database is a collection of data, usually stored in electronic form. A database is typically designed so that it is easy to store and access information.A good database is crucial to any company or organisation. This is because the database stores all the pertinent details about  the company such as employee records, transactional records, salary details etc.The various reasons a database is important are −Manages large amounts of dataA database stores and manages a large amount of data on a daily basis. This would not be possible using any other tool such as a spreadsheet as they would simply ...

Read More

Object-oriented Data Model

Kristi Castro
Kristi Castro
Updated on 19-Jun-2020 20K+ Views

Object oriented data model is based upon real world situations. These situations are represented as objects, with different attributes. All these object have multiple relationships between them.Elements of Object oriented data modelObjectsThe real world entities and situations are represented as objects in the Object oriented database model.Attributes and MethodEvery object has certain characteristics. These are represented using Attributes. The behaviour of the objects is represented using Methods.ClassSimilar attributes and methods are grouped together using a class. An object can be called as an instance of the class.InheritanceA new class can be derived from the original class. The derived class contains ...

Read More

C# Program to find whether the Number is Divisible by 2

Samual Sam
Samual Sam
Updated on 19-Jun-2020 8K+ Views

If the remainder of the number when it is divided by 2 is 0, then it would be divisible by 2. Let's say our number is 5, we will check it using the following if-else − // checking if the number is divisible by 2 or not if (num % 2 == 0) { Console.WriteLine("Divisible by 2 "); } else { Console.WriteLine("Not divisible by 2"); } Example The following is an example to find whether the number is divisible by 2 or not. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo { ...

Read More

Common Language Runtime (CLR) in C#.NET

Samual Sam
Samual Sam
Updated on 19-Jun-2020 6K+ Views

Common Language Runtime (CLR) manages the execution of .NET programs. The just-in-time compiler converts the compiled code into machine instructions. This is what the computer executes.The services provided by CLR include memory management, exception handling, type safety, etc.Let us see the features of Common Language Runtime (CLR) in C#:ComponentsComponents in other languages can be easily worked upon with CLR.ThreadingThe CLR provides support for threads to create multithreaded applications.Class Library SupportIt has built-in types and libraries for assemblies, threading, memory management, etc.DebuggingCLR makes code debugging easier.Garbage CollectionIt provides automatic garbage collection in C#.

Read More

Create translucent windows in Java Swing

Samual Sam
Samual Sam
Updated on 19-Jun-2020 493 Views

With JDK 7, we can create a translucent window using swing very easily. With following code, a JFrame can be made translucent.// Set the window to 55% opaque (45% translucent). frame.setOpacity(0.55f);ExampleSee the example below of a window with 55% translucency.import java.awt.GridBagLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Tester {    public static void main(String[] args)  {                     JFrame.setDefaultLookAndFeelDecorated(true);          // Create the GUI on the event-dispatching thread          SwingUtilities.invokeLater(new Runnable() {          @Override          public void ...

Read More

Create Toast Message in Java Swing\\n

karthikeya Boyini
karthikeya Boyini
Updated on 19-Jun-2020 2K+ Views

A toast message is an alert which disappears with time automatically. With JDK 7, we can create a toast message similar to an alert on android very easily. Following are the steps needed to make a toast message.Make a rounded rectangle shaped frame. Add a component listener to frame and override the componentResized() to change the shape of the frame. This method recalculates the shape of the frame correctly whenever the window size is changed.frame.addComponentListener(new ComponentAdapter() {    @Override    public void componentResized(ComponentEvent e) {       frame.setShape(new  RoundRectangle2D.Double(0, 0, frame.getWidth(),       frame.getHeight(), 20, 20));    } ...

Read More
Showing 49571–49580 of 61,248 articles
Advertisements