Posts

Super Keyword in Java

  Super Keyword in Java -

Collection Framework

Image
 In this blog I will share with you the most important concept of Java that is Collection API. We will see all the Collection Class and Interfaces in details Collection in Java Collection in java is a Framework that provide a architecture to store and manipulate the object. In simple word we can say collection framework is used to store the object and also we can perform many operation like searching, insertion, Deletion and many more. Java Collection means a single unit of object and It have interface (List, Set, Queue, Deque) and have classes(ArrayList, Vector, LinkedList. PriorityQueue, HashSet, LinkedHashSet, TreeSet) Why we called Collection is a Framework, because it have  a readymade Interface and Classes  and use of collection is optional we can also create own architecture. Iterator Interface: Provide the facility to iterate the elements in the forward direction only. Method of Iterator interface public boolean hasNext() - Return true if collection has next eleme...

Convert your thoughts into a website at an affordable price

Image
Would you like to create a website for your business? If your answer is yes, you’re in the right place! We are a team of industry experts who will transform your ideas into a website at an affordable price. On-time project delivery and quality are our top priorities. So, what are you waiting for? Dial our contact number or reach out to us on WhatsApp. Contact No : +91 8477846486 Email : chahuanharshit605@gmail.com Web Development Why choose us? For many years, we have been delivering high-quality websites to our clients, and all of them are satisfied with our services. We also offer post-project assistance without any additional charges. So, why wait? Dial our contact number and make your dream come alive on the internet!

Use of Recurrence Relation | How to calculate the time complexity of Algorithm

Image
When we are preparing for the job as a software developer in MNC's like Google, Mata, IBM, etc., we usually focus mostly on the data structure and algorithms, and sometimes we fall behind in the analysis of the algorithms. So it is also a very demanding skill for tech companies to analyze the performance of the algorithms in terms of time and space complexity. For analyzing the algorithms, we first create the recurrence relation. What is the recurrence relation in the context of algorithms? A recurrence relation is a mathematical relation or expression that is used to describe the time complexity of a problem in terms of its solution to smaller instances of the same problem. A typical recurrence relation is in the form: T(n) = f(n) + T(h(n)) where T(n) is the time complexity of the problem of size n, f(n) is the time complexity of the current problem, and h(n) is the size of the subproblem being solved. The recurrence relation is used to calculate the time complexity of various alg...

Most Asked Coding Questions In IT Companies

Frequently asked Questions in the Technical round of the IT Companies. 1. Program to print the String in Reverse. package iamAlien; import java.util.Scanner; public class Alien { public static void main(String[] args) {       Scanner sc = new Scanner(System.in);         System.out.println("Enter Any String without Space: ");       String reverse ="";       String str = sc.nextLine();       for(int i=0; i<str.length(); i++)       {     reverse = str.charAt(i) + reverse;              }       System.out.println(reverse); } } 2. Program to count the occurring a particular Alphabet in the word taken by the User. package iamAlien; import java.util.Scanner; public class Alien { public static void main(String[] args) {       Scanner sc = new Scanner(System.in);         System.out.println("...

C Program To Insert Element In Singly Linked List ( Insert at last, Insert at beginning and Insert at some position )

Linked List is a sequential data structure in which elements are stored via link. Every node is connect with other node. Generally Linked List are three type: Singly Linked List Doubly Linked List Circular Linked List In this article we will cover how we can insert element in the singly linked list at the different position Singly Linked List In singly linked list data structure there are mainly two part first is link part and second is data part. In the link part of singly linked list the base address of the next node is stored. And in the data part actual data is stored.        1->2->3->4->5->NULL Link part of the last node of the singly linked list contain NULL. Insert Data At Beginning In The Singly Linked List First of all check linked list is empty or not if linked list have no node then make the newNode->NULL and make newNode as a Head node. If linked list have already some nodes then make newNode->next = head and head = newNode. Insert Da...

How To Connect With Oracle Database | Create Your Own User In Oracle Database

How to work with Oracle database a guide from beginner to advance. In this article, we will look at all the concepts which are useful to work with the oracle database. Steps to follow work with Oracle Database: Install the Oracle database from the Oracle official site. Set the password for the system/sys user you can set any password which you want to set. Now is the time to design our own user in the Oracle database but before designing the user we want to connect sys / system or any other user. Type command in SQL Command line: connect system/password     SQl>show user To create our own user with Harshit name . - SQL> create user Harshit identified by abc; user id  - Harshit  Password- abc To connect with the Harshit user we need to assign the privileges. - SQL> grant connect, resource to Harshit; -SQL> grant dba to Harshit;  - Now Harshit user can perform dba task also, all privilege affected on new session. -SQL> revoke dba from Harshit;...