1) Base of hexadecimal number system? Answer : 16 2) Universal gate in digital logic? Answer : NAND 3) Memory type that is non-volatile? Answer : ROM 4) Basic building block of digital circuits? Answer : Gate 5) Device used for data storage in sequential circuits? Answer : Flip-flop 6) Architecture with shared memory for instructions and data? Answer : von Neumann 7) The smallest unit of data in computing? Answer : Bit 8) Unit that performs arithmetic operations in a CPU? Answer : ALU 9) Memory faster than main memory but smaller in size? Answer : Cache 10) System cycle that includes fetch, decode, and execute? Answer : Instruction 11) Type of circuit where output depends on present input only? Answer : Combinational 12) The binary equivalent of decimal 10? Answer : 1010 13) Memory used for high-speed temporary storage in a CPU? Answer : Register 14) Method of representing negative numbers in binary? Answer : Two's complement 15) Gate that inverts its input signal? Answer : NOT 16)...
Difference between JDK,JRE and JVM
JDK, JRE and JVM are core concepts of java programming language. Although they all look similar and as a programmer we don't care about this concepts a lot, but they are different and meant for specific purpose.
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 thats why we have separate installers for Windows, Mac and Unix system. We can say that JDK is superset of JRE. Since it contains JRE with java compiler, debugger and core classes. Current version of JDK is 16 also known as java 16.
JVM
JVM is the heart of java programming language. when we run a program, JVM is responsible to 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. JVM is customizable and we can use java option to customize it, for example allocating minimum and maximum memory to JVM. JVM is called virtual because it provides a interface that does not depend on the underlying operating system and machine hardware. This independence from hardware and operating system is what makes java program write-once run- anywhere.
JRE
Java Runtime Environment (JRE) is the implementation of JVM, it provides platform to execute java programs. JRE consists of JVM and java binaries and other classes to execute any program successfully. JRE doesn't contain any development tool like java compiler, debugger etc. If you want to execute any java program, you should have JRE installed but we don't need JDK for running any java program.