Core Java

Overview of Class file Structure in Java?

Overview of Class file Structure in Java?

Overview of Class file Structure in Java? 1. Magic Number The first four bytes of the class file is the magic number. This is a predefined value used by JVM to identify a .class file is generated by the valid compiler or not. The value should be “OXCAFEBABE”. Note:- Whenever we are executing a java class if JVM unable to ...

Read More »

JVM Architecture: Overview of JVM and JVM Architecture

JVM Architecture: Overview of JVM and JVM Architecture

JVM Architecture: Overview of JVM and JVM Architecture Class loader Subsystem The class loader subsystem is used for loading/reading the .class file and saving the bytecode in the JVM method area. ClassLoader is responsible for loading class files from file system, network or any other source. There is three default class loader used in Java, Bootstrap, Extension, and System or Application class loader. ...

Read More »

What is Arrays class in Java?

What is Arrays class in Java?

What is Arrays class in Java? Arrays class is a utility class to define several utility methods for array objects.  We can sort primitive arrays only based on default natural sorting order whereas we can sort object arrays either based on default natural sorting order or based on customized sorting order Sorting elements of the array  1 Public static void ...

Read More »

What is a Collection class in Java?

What is a Collection class in Java?

What is a Collection class in Java? Collections class defines several utility methods for collection objects like sorting, searching, reversing, etc.  Sorting elements of List  Collections class defines the following two methods for sorting. 1 Public static void sort(List l) To sort based on default natural sorting order In this case list should compulsory contain homogenous and comparable objects otherwise ...

Read More »

What is Hashtable in Java with Example?

What is Hashtable in Java with Example?

What is Hashtable in Java with Example? What is Hashtable in Java with Example? The underlying data-structure for Hashtable is Hashtable. Insertion order is not preserved and it is based on Hashcode of keys. Duplicate keys are not allowed and values can be duplicated. Heterogeneous objects are allowed for both keys and values. Null is not allowed for both key and ...

Read More »

What is TreeMap in Java with example?

What is TreeMap in Java with example?

  What is TreeMap in Java with example? The underlying data-structure is Red-black-Tree. Insertion order is not preserved and it is based on some sorting order of keys. Duplicate key is not allowed but values can be duplicated. If we are depending on default natural sorting order then keys should be heterogeneous and comparable. Otherwise, we will get Runtime exception saying ...

Read More »

Responsive WordPress Theme Freetheme wordpress magazine responsive freetheme wordpress news responsive freeWORDPRESS PLUGIN PREMIUM FREEDownload theme free