What is a Marker or Tagged Interface in Java

Debarpito Sarkar
Updated on 05-Sep-2022 12:14:41

3K+ Views

This article will help you understand what a Marker or Tagged Interface in Java is. Before understanding marker interface, let’s revise on Interface. INTERFACE Similar to an object, an Interface is a blueprint of a class. It consists of static constants and abstract methods. It is a mechanism to achieve abstraction and multiple inheritance in Java. It is declared using the interface keyword. It provides total abstraction, meaning all methods in an interface must be declared with empty body, and all fields must be public, static and final by default. Syntax interface { // constant fields declaration ... Read More

Key Features of Java

Debarpito Sarkar
Updated on 05-Sep-2022 12:08:11

5K+ Views

This article will help you understand what the key features of Java Programming language are. The Key features of Java Programming Language are − Java is Easy to Understand Java’s base is similar to that of C and C++ languages and it includes many important features of these languages. It removes many drawbacks and complexities of C or C++. So if one has good understanding of either C or C++, then Java language will be very familiar and easily understandable. Java is an object oriented programming language Object Oriented Programming (OOP) is an approach to standardize the programs by creating ... Read More

What is Java String Literal

George John
Updated on 05-Sep-2022 11:34:39

4K+ Views

Strings, which are widely used in Java programming, are a sequence of characters. In Java programming language, strings are treated as objects. The Java platform provides the String class to create and manipulate strings. You can also create a String directly as − String greeting = "Hello world!"; A string literal should be enclosed in double quotes. Whenever it encounters a string literal in your code, the compiler creates a String object with its value in this case, "Hello world!'. Example Live Demo public class StringDemo { public static void main(String args[]) { ... Read More

Add Groups in Django Using Authentication System

Gayatri Jandhyala
Updated on 05-Sep-2022 11:06:24

3K+ Views

Django is equipped with built-in permissions system that assigns permissions to specific users or groups of users. Permissions used by the Django-admin site are as follows, Users with the "view" or "update" permission for that type of object have access to view objects. Only users with the "add" permission for that type of item have access to view the "add" form and add an object. Users having the "change" permission for that type of item have access to the change list, the "change" form, and the ability to change an object. Only users having the "delete" permission for that ... Read More

Create User and Superuser in Django Authentication System

Gayatri Jandhyala
Updated on 05-Sep-2022 11:04:37

4K+ Views

The demand for dynamic websites increased as more features were required in websites. In this, in addition to delivering content, the server stores data and responds to user input. One of the key reasons for having a dynamic site is the ability to authenticate users and limit the material they may access. User objects are the core of the authentication system. Like mentioned above, users are the people interacting with your site. they are used to enable things like restricting access, registering user profiles, associating content with creators etc. Let us go ahead and understand how to create users and ... Read More

Change User Password in Django

Gayatri Jandhyala
Updated on 05-Sep-2022 11:03:28

6K+ Views

Static and dynamic websites are the two types of websites widely used on the web. Django is a web development framework for creating dynamic webpages. A static website is one that only displays information and has no interaction other than simple page requests that is recorded on the server. The purpose of a static website is for the server to provide HTML, CSS, and JavaScript to the client. More features needed to be included in websites which increased the demand for dynamic websites. In which the server keeps data and responds to user input in addition to presenting content. The ... Read More

Prevent Session Hijacking in Django

Gayatri Jandhyala
Updated on 05-Sep-2022 11:01:14

1K+ Views

Session hijacking or session forging is another security issue that most websites are prone to. In this article, we will know more about the attack and how to protect your website against it. This is a wide class of attacks on a user's session data, rather than a specific assault. It has many forms and they are discussed below. A man-in-the-middle attack occurs when an attacker intercepts session data as it travels over the network. ... Read More

Add Authorization to Your Django Website

Gayatri Jandhyala
Updated on 05-Sep-2022 10:59:57

867 Views

In order to work with users’ data, first we keep track of data using sessions and later we enable user login by using those sessions. A system that allows developers to authorize an auth/auth system is a term used to describe the system that enables user authentication and authorization. The name (auth/auth) recognizes that dealing with users is often a two-step process. Check a username and password against a database of users to verify (authenticate) that a person is who he or she claims to be. Verify (authorize) that the user is authorized to do a specific operation, usually ... Read More

Add Authentication to Django Website

Gayatri Jandhyala
Updated on 05-Sep-2022 10:57:40

786 Views

In a web application, there are two key elements to data management. The first is to save data acquired from multiple browser queries, and the second is to use this preserved data to authenticate users. Sessions allow us to keep track of data across numerous browser queries. The second half of the equation is logging in users using those sessions. We cannot trust people to be who they claim they are, so we have to verify their identities along the process. Django, of course, includes tools to perform these and other typical tasks. User accounts, groups, permissions, and cookie-based user ... Read More

Humanize Tags in Django

Gayatri Jandhyala
Updated on 05-Sep-2022 10:54:52

2K+ Views

Humanize means to make something more humane or human readable. To humanize tags means to makes it easier for the humans to understand. For example, 1800000000 becomes 1.8 billion or 10000 becomes 10, 000. There are simple changes that can be implemented to convert tags to a more human readable format. Django offers template filters that add human touch to data which makes it more appealing to read. To enable the usage of these filters, django.contrib.humanize should be added to the INSTALLED_APPS in the settings.py file of your project. INSTALLED_APPS = [ 'reglogin', 'mlmodel', ... Read More

Advertisements