The Runtime class

The Runtime class in Java is part of the java.lang package and is a singleton class that provides a way to interface with the Java Virtual Machine (JVM) at runtime. It lets your program interact with the environment, such as memory management, executing system commands, or exiting the program. 🔑 Key Features of Runtime…

0 Comments

The System class

The System class in Java is a final class in java.lang package that provides useful system-related utilities. It cannot be instantiated (constructor is private), and all of its members are static. 🔑 Features of System Class Here are the main things you can do with it: 1. Standard Input, Output, Error Streams System.out →…

0 Comments

StringBuffer and StringBuilder

In Java, both StringBuffer and StringBuilder are classes used to create and manipulate mutable strings (unlike String, which is immutable). Here’s the comparison: 🔑 1. Mutability Both StringBuffer and StringBuilder create mutable string objects (content can be changed without creating new objects). 🔑 2. Thread Safety StringBuffer Thread-safe, because its methods are synchronized. Suitable…

0 Comments

Front End Learning Roadmap

csscsspackage managerpackage managerlinterslintersmodule bundlermodule bundlertestingtestingtypescripttypescriptspaspaReactjsReactjsAngularAngularhttphttpgraphqlgraphqlSecuritySecurityIdentity and Access Management (IAM)Identity and Access...SSOSSORBACRBACOAuth2 / OpenID ConnectOAuth2 / OpenID Conn...JWTJWTCSPCSPJWT ValidationJWT ValidationIDTokenIDTokenAccess TokenAccess TokenCSPCSPOWASPOWASPSSL/TLSSSL/TLSCORSCORScode & methodscode & methodsnpmnpmyarnyarntoolstoolsBrowser DevToolsBrowser DevToolsfundamentalsfundamentalsadvancedadvancedeslinteslintprettierprettierwebpackwebpackcypresscypressREST ApiREST ApiProgressive Web AppsProgressive Web AppsServer-Side RenderingServer-Side RenderingjestjestAngular CLIAngular CLIproject structureproject structureModulesModulesComponentComponentDecoratorDecoratorpipespipesservices and DIservices and DItemplates and databindingtemplates and databi...routingroutingFormsFormsRxjsRxjsHttpHttpLifecycle HooksLifecycle Hooksroute gaurdsroute gaurdsRouterModuleRouterModuleHttpClientModuleHttpClientModuleInterceptorsInterceptorsRxjx OperatorsRxjx OperatorsObservable &…

0 Comments

SQL Learning Roadmap

Basic OperationsBasic OperationsComplex QueriesComplex QueriesViewsViewsStored Procedures and FunctionsStored Procedures an...Triggers and EventsTriggers and EventsTransactionsTransactionsIndexesIndexesSecurity and PermissionsSecurity and Permiss...Querying dataQuerying dataModifying dataModifying dataFiltering data Filtering data OperatorsOperatorsSorting and limiting data Sorting and limiting...Aggregate functionsAggregate functionsBEGIN, COMMIT, ROLLBACK  BEGIN, COMMIT, ROLLB...Joins (INNER, OUTER, SELF, NATURAL, CROSS) Joins (INNER, OUTER,...Grouping data (GROUP BY, HAVING, ROLLUP)Grouping data (GROUP...SubqueriesSubqueriesadvanced functionsadvanced functionsN+1 problemN+1 problemDataTypesDataTypesDDLDDLPrimary Keys…

0 Comments

Replica sets in databases

What is a Replica Set? A replica set is a group of database servers that maintain the same dataset to provide redundancy and high availability. Essentially, it’s a way to make your database fault-tolerant: if one server fails, another can take over with minimal downtime. Key Points: Primary: Receives all write operations. There is…

0 Comments

CRUD operations in MongoDB

1. CREATE (Insert Documents) Insert one document: db.collectionName.insertOne({ name: "Alice", age: 25, city: "New York" }); db.collectionName.insertOne({ name: "Alice", age: 25, city: "New York" }); Insert multiple documents: db.collectionName.insertMany([ { name: "Bob", age: 30, city: "Los Angeles" }, { name: "Charlie", age: 28, city: "Chicago" } ]); db.collectionName.insertMany([ { name: "Bob", age: 30, city:…

0 Comments

Database version control and migrations

1. Version Control in Databases Just like version control for code (Git, for example), database version control is a way to track and manage changes to your database schema over time. Instead of manually updating databases on different environments, version control helps keep track of what changed, when, and why. Why it’s important: Multiple…

0 Comments

Cursors in SQL

1. What is a Cursor? A cursor is a database object used to retrieve, traverse, and manipulate one row at a time from the result set of a query. Unlike a normal SELECT query that returns all rows at once, a cursor allows you to process rows individually. This is especially useful when you…

0 Comments

CASCADE in SQL

In SQL, CASCADE is an option used with FOREIGN KEY constraints when defining relationships between tables. It specifies that certain actions on a parent table should automatically propagate to the related child table(s). The most common use cases are ON DELETE CASCADE and ON UPDATE CASCADE. Let's break it down: 1. ON DELETE CASCADE…

0 Comments

End of content

No more pages to load