We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept
What is the difference between an object-oriented programming language and object-based programming language?

Object-Oriented Languages (OOP) follow all the concepts of OOPs whereas, Object-based languages don't follow all the concepts of OOPs like inheritance and polymorphism.

Object-oriented languages do not have the inbuilt objects whereas Object-based languages have the inbuilt objects, for example, JavaScript has window object.

Examples for Object Oriented Languages include Java, C# whereas Object-based languages include VB etc.

Java Concepts OOP •  Added 3 months ago

What is the difference between JDK, JRE, and JVM?

Java Virtual Machine (JVM) is an abstraction layer between a Java application and the underlying platform. it is acts as a “virtual” machine, to the bytecodes comprising the program.

JRE stands for Java Runtime Environment,which provides run time enviorment to run java applications. It is the combination of JVM and set of libraries to which will be used to run application.

JDK stands for Java Development Kit. It is a software development environment, used to develop Java applications and applets. It contains JRE(Java Runtime Environment) and development tools to develop applications.

Java Concepts •  Added 3 months ago

What are the types of access specifiers in Java?

In Java, access specifiers are the keywords which are used to define the access scope of the method, class, or a variable.

There are four access specifiers in java.

Public - The classes, methods, or variables which are defined as public, can be accessed by any class or method.

Protected - Protected can be accessed by the class of the same package, or by the sub-class of this class, or within the same class.

Default - Default are accessible within the package only. By default, all the classes, methods, and variables are of default scope.

Private - The private class, methods, or variables defined as private can be accessed within the class only.

Java Concepts •  Added 3 months ago