Skip to main content

Posts

Showing posts from December, 2023

What is Hashtable, And what are features of Hashtable ?

Introduction : A hashtable is a data structure that allows you to store and retrieve value using a key. It is a widely used data structure in computer science for implementing associative arrays, sets and  caches. The bsic idea behind a hashtable is to use a hash function to map key to indices in an array. This allows for efficient insertion, deletion and retrieval of values. Here are the Key Features of hashtables: 1. Key-value Storage: A hash Table stores data in key-value pairs. The key is used to uniquely identify each entry in the hashtable. The value is the data associated with the key. 2.  Hash Function: Hash function takes a key as input and produces a fixed size hash code(usually an integer) as output. The hash code is used as an index to store the key-value pair in the array. An ideal hash function distrubutes keys uniformly across the array, minimizing collisions. 3. Array Storage: Hash Table use an array to store the key-value pairs. The array sixe is typically det...

Designing a Student Grading Android App: A Step-by-Step Guide

 Introduction: In this blog post, we will walk through the process of designing an Android application that takes student details and subject marks as input, calculates the student's grade based on the obtained percentage, and displays the result using ViewGroup components. Step1: Setting Up the Project Start by creating a new Android Studio project. Choose an appropriate project name and set up the basic configuration. Ensure that you have the latest Android SDK installed. Step2: Desinging the User Interface (UI): Write a below code in activity_main.xml file located in res ->layout-> activity_main.xml  Xml code: <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns:android ="http://schemas.android.com/apk/res/android" android:layout_width ="match_parent" android:layout_height ="match_parent" xmlns:tools ="http://schemas.android.com/tools" a...

What is Class in java ?

 Table of Content Introduction What is mean By class? Why class is important in Java ? Syntax Simple Example Video Explanation If Java development kit is not installed on machine refer this Installation of Jdk Introduction: In this Blog Post we discuss about Class in java .  Class is most important part in object oriented programming languages like Java,python etc. this article helps student and beginers to Understant how to create a class in simple word . in this article we cover some point like what is class actually,Syntax of class ,Simple example of class and video that helps to understand the class in java. Let's Start  What is  class in java? Class is a Blue print of Object . Class is not Physical entity because it can not consume memory. class is collection of member function and Data members. In other world member functions are called as functions and methods. and Data members are called as Data types and variables ...

Interface - Object Oriented Programming : Java

Table of Content Introduction What is Interfaces in Java Why Interfaces are important Some Important Point To Be Noted Syntax Java Interface Examples Introduction :  In the dynamic world of Software Development , Object Oriented Programming (OOP's) stands as a cornerstone for building robust , scalable applications . One of the key features that empowers OOP's is the concept of interfaces. In this article , we will discuss the interfaces and exploring how they enhance code modularity and flexibility. What is Interfaces in Java?  Java interfaces provide an abstraction archiving mechanism. The Java interface can only include abstract methods; method bodies are not allowed. In Java, it is used to archive both multiple inheritance and 100% abstraction.  Stated differently, it is possible for interfaces to contain abstract variables and methods. There cannot be a method body for it.  It s...

Source File Structure in java

Welcome to world of Programming ! Whether you are a notice beginner coder, student understanding the fundamental structure of Java source file is crucial. In this article , we will unravel the mysteries behind java source file ,providing you with a solid foundation for writing clean ,efficient ,and maintainable code ,and clear the concept behind java source file and Tips . In this article we discuss this concept with Question and Answer based . Q1. In Java Program How many Class can we Take ?  Ans . In java program we can take any no of classes .and we can compile them but we cant run without Main method  Demo with code :  Q2. Which class name do we give for the Java programm?  Ans : Any Class name we can give for Java program( as like shown in above demo with code) but if we declare any class of them as Public we have to compulsory create a java program file with that class name ....

Java installation on windows

Setting  Up  JDK On Windows 11: A Step by Step Guide Introduction :  The Java Development Kit (JDK), which offers the components required to create, compile, and execute Java applications, is a vital tool for Java developers. We'll guide you through installing JDK and configuring the environment on a Windows 11 computer in this article. Download and Installation Steps : Step 1 :   Go to the download page for Oracle JDK: Visit the Oracle JDK official download page at : https://www.oracle.com/in/java/technologies/downloads/ Step 2: Accept the License Agreement: Scroll down to find the list of available JDK versions. Accept the license agreement by clicking on the checkbox next to "Oracle JDK" and choose the appropriate version for your system. Step 3 :  Download the Installer:  Click on the download link for the installer that matches your operating system. For Windows, it typically has a filename like `jdk-17.0.1_windows-x64_bin.exe`. Step 4 :  Ru...