- What is the difference between structur and union?
- What are the supported data types in python?
- What is namespace in C++?
- Waht is the difference between JDK, JRE and JVM?
- List some differences between C++ and Java?
1. Question: What is the difference between structure and union?
Structure: A Structure is user-defined data type available in C that allows to combining data type availabe in C that allows to combining data items of different kinds. Structures are used to represent a record.
Union: A Union is a special data type available in C that allows storing different data types in the same memory location. You can define a union with many members, but only one member can contain a value at any given time.
3.Question: What are he supported data types in python?
- bool: Boolean (true/false) types.
- int: Signed integer types.
- uint: Unsigned integer types.
- float: Floating point types/
- complex: Complex nuber types.
- string: Raw string types.
- time: Data/time types.
- enum: Enumerated types.
3. Qusetion: What is namespace in C++?
- Namespace is a feature added in C++ and not present in C. A namespace is declarative region that provides sa scope to the identifiers (names of the types. function, variables etc) inside it.
- Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries.
4. Qusetion: What is the difference between JDKm JRE and JVM?
- JDK: Java Development Kit is the core component of java Environment and provides all the tools, executables and binaries required to compile, debug and execute a Java Program. JDK is a platform-specific software and that’s why we have separate installers for Windows, Mac, and Unix systems.
- JVM: JVM is the heart of Java programming language. When we run a program, JVM is responsible for converting Byte code to the machine specific code. JVM is also platform dependent and provides core java functions like memory management, garbage collection, security etc.
- JRE: Jre is the implementation of JVM, it provides a platform to execute java programs. JRE consists of JVM and java binaries and other classes to execute any program successfully.
JDK vs JRE vs JVM
Thank you for visiting us