Posts

Showing posts from March, 2022

Why String is Immutable in Java - thejavaconceptspart

Image
Why String is Immutable in Java - thejavaconceptspart Why String is Immutable in Java String is Immutable in Java because:- String pool requires string to be Immutable otherwise shared reference can be changed from anywhere. Security because string is shared on different area like file system, Networking connection, Database connection, having Immutable string allows you to be secure and safe because no one can change reference of string once it gets created. Other Related Search Java Naming Conventions Wrapper Class in Java String is Immutable in Java Java and Java Uses Java Virtual Machine (JVM) Java Runtime Environment (JRE) Java Development Kit (JDK) Java Buzzword Declaration of enum in java Advantage of OOPS JRE,JVM and JDK Object Oriented Approach Java structure Vs OOP P

Java JVM , JRE and JDK in Java - thejavaconceptspart

Java JVM , JRE and JDK in Java - thejavaconceptspart Java JVM, JRE and JDK JVM is an abstract Machine and It Doesn't exist physical and JRE contains set of library and other files and JDK develop Java applications and Applets.. Java Virtual Machine (JVM) JVM is an abstract machine that doesn't exist physically Provides runtime environment to drive the java code or application It compiles the java java code into bytecode It is platform dependent Java Runtime Environment (JRE) Java Runtime Environment within which the JVM runs It contains a set of library + other files that jvm uses at runtime It is also called RTE Java Development Kit (JDK) JDK is a software development environment which is used to develop Java Applications and Applets It contains Development Tools and JRE Other Related Search

Buzzword in Java - thejavaconceptspart

Buzzword in Java - thejavaconceptspart Buzzwords in Java The Feature of Java are also known as Java Buzzwords. A list of Most important features of Java language is given as below Simple Java is very easy to learn and it's syntax is simple, clean and easy to understand.There is no need to remove unreferenced objects because there is an Automatic Garbage Collection in Java. Object-oriented Java is an object oriented programming language. Everything in Java is an object. Basic concepts of OOPS are:- Object Class Inheritance Polymorphism Abstraction Encapsulation Portable Java is portable" refers to the SE version. It means that you can run java bytecode on any hardware that has a compliant JVM Platform Independent Java is platform independent because it is different from other language like c, c++ etc which can compiled into platform specific machine while

Wrapper Classes in Java - Java Programming - The Java Concepts Part

Wrapper Classes in Java - Java Programming - The Java Concepts Part Wrapper Classes in Java Each of Java's eight primitive data type has a class dedicated to it. These are known as wrapper classes because they "wrap" the primitive data type into an object of that class. To use lower case letters and Upper case letters in Java applications, Java has given a set of conventions Difference Between Primitive or Wrapper Class Primitive boolean, byte, char, int, float, double, long, short, Wrapper Class Boolean, Byte, Character, Integer, Float, Double, Long, Short, Example Wrapper Class public static void main(String [ ]args){ int i=10;//single value container Integer iRef=new Integer(i); int j=iRef.intValue(); Integer kRef=i; int L=kRef //Auto Unboxing)