You are here: Home / Topics / Page / 14

TypeScript - Basic Types of Data

Filed under: TypeScript on 2024-03-18 11:01:22
JavaScript has three very commonly used primitives: string, number, and boolean. Each has a corresponding type in TypeScript. string represents string values like "Hello, world" number is for numbers like 42. JavaScript does not have a special runtime value for integers, so there’s 

Singleton Design Pattern - TypeScript

Filed under: TypeScript on 2024-03-14 17:15:36
The Singleton pattern can be useful in various scenarios where you need to ensure that there is only one instance of a class and provide global access to that instance. Some real-time use cases of the Singleton pattern include:Database Connections: When working with a database, you may want to have 

Creating Class in Typescript

Filed under: TypeScript on 2024-03-14 11:08:37
TypeScript offers full support for the class keyword introduced in ES2015.Class MembersHere’s the most basic class - an empty one:class Point {}This class isn’t very useful yet, so let’s start adding some members.FieldsA field declaration creates a public writeable property on a class:class Po

TypeScript Overview and Installation Guides

Filed under: TypeScript on 2024-03-14 10:06:45
TypeScript is an open-source language that is developed and maintained by Microsoft under the Apache 2 license. TypeScript is a strongly typed superset of JavaScript which compiles to plain JavaScript. It needs a compiler to compile and generate in a JavaScript file. TypeScript is the ES6 

Concepts of Typescript

Filed under: TypeScript on 2024-03-14 10:04:15
TypeScript is a programming language developed by Microsoft that extends JavaScript by adding static typing to it. It aims to enhance the development experience by providing better tooling, error checking, and code organization. Here are some key concepts in TypeScript: Static Typing: TypeScrip

How to get Database data using Hibernate? Explained by Impl class

Filed under: Java on 2024-03-11 21:27:10
Before viewing this example. Go and learn  (Hibernate Configuration using java file)package com.mysite.firstJavaDbApp.serviceImpl;import java.util.List;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.Transaction;import com.mysite.firstJavaDbApp.beans.Employ

Hibernate Configuration using Java Singleton Class

Filed under: Java on 2024-03-11 21:24:26
package com.mysite.firstJavaDbApp.config;import java.util.Properties;import org.hibernate.SessionFactory;import org.hibernate.boot.registry.StandardServiceRegistryBuilder;import org.hibernate.cfg.Configuration;import org.hibernate.service.ServiceRegistry;import com.mysite.firstJavaDbApp.beans.Employ