Nitin Sharma has Published 48 Articles

Difference between notify() and notifyAll() in Java

Nitin Sharma

Nitin Sharma

Updated on 02-Mar-2020 10:15:56

6K+ Views

Both notify and notifyAll are the methods of thread class and used to provide notification for the thread.But there are some significant differences between both of these methods which we would discuss below.Following are the important differences between notify and notifyAll.Sr. No.KeynotifynotifyAll1NotificationIn case of multiThreading notify() method sends the notification ... Read More

Difference between continue and break statements in Java

Nitin Sharma

Nitin Sharma

Updated on 02-Mar-2020 10:12:45

7K+ Views

As we know in programming execution of code is done line by line.Now in order to alter this flow C++ provides two statements break and coninue which mainly used to skip some specific code at specific line.Following are the important differences between continue and break.Sr. No.KeyBreakContinue1FunctionalityBreak statement mainly used to ... Read More

Difference between an Integer and int in Java

Nitin Sharma

Nitin Sharma

Updated on 02-Mar-2020 10:04:38

9K+ Views

A Java both int and Integer are used to store integer type data the major difference between both is type of int is primitive while Integer is of class type.This difference become significant when concept of OOPs comes in picture during development as int follows the principle of primitive data ... Read More

What is the differences between TreeMap, HashMap and LinkedHashMap in Java?

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:36:22

1K+ Views

HashSet and ArrayList both are one of the most important classes of the Java Collection framework.The following are the important differences between TreeMap, HashMap and LinkedHashMap.Sr. No.KeyTreeMapHashMapLinkedHashMap1Ordering of elementsThe elements inserted in TreeMap are sorted according to the natural ordering of its keys, or by a Comparator provided at map ... Read More

What is the differences between HashMap and HashTable in Java

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:35:37

699 Views

HashMap and HashTable both are one of the most important classes of Java Collection framework. Both HashMap and HashTable stores the data in key value pair and at the time storing data hashing is used to hash the key and the resulting hash code is used as the index at ... Read More

Difference between throw and throws in Java

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:29:22

9K+ Views

Both throw and throws are the concepts of exception handing in which throw is used to explicitly throw an exception from a method or any block of code while throws are used in the signature of the method to indicate that this method might throw one of the listed type ... Read More

Difference between Thread.start() and Thread.run() in Java.

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:28:24

5K+ Views

As we know that start() and run() are the two important methods of multithreading and one is used to create a new thread while other is used to start executing that thread.Following are the important differences between Thread.start() and Thread.run().Sr. No.Keystart()run()1Implementationstart method of thread class is implemented as when it ... Read More

Difference between String and Character array in Java.

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:27:27

5K+ Views

On technical groud, we can say that both a character array and string contain the sequence of characters and used as a collection of characters. But there are significant differences between both which we would discuss below.The following are the important differences between String and Character array.Sr. No.KeyStringCharacter array1ImplementationString is ... Read More

Difference between Singly linked list and Doubly linked list in Java

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:25:53

3K+ Views

Both Singly linked list and Doubly linked list are the implementation of Linked list in which every element of singly-linked list contains some data and a link to the next element, which allows to keep the structure. On the other hand, every node in a doubly-linked list also contains a ... Read More

Difference between Servlet and JSP

Nitin Sharma

Nitin Sharma

Updated on 18-Sep-2019 14:23:53

5K+ Views

In brief, it can be defined as Servlet are the java programs that run on a Web server and act as a middle layer between a request coming from HTTP client and databases or applications on the HTTP server.While JSP is simply a text document that contains two types of ... Read More

Advertisements