answersLogoWhite

0

How to convert bytecode to .jpeg file in servlet?

Thanks

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

How do you convert text into binary in vb or c sharp code?

C# EXAMPLEString text="My sample data";System.Text.ASCIIEncoding encode=new System.Text.ASCIIEncoding();//convert to binary and store in a byte[]byte[] binaryArray=encode.GetBytes(text);


What was the first programming language that used a virtual machine to permit portability of one compiled and linked image to run on many different incompatible computers?

Strictly speaking there has never been such a language. The compiled/linked code is actually an intermediate code known as p-code (portable code), but more commonly referred to as byte code. However, that byte code must subsequently be interpreted or compiled by a virtual machine in order to produce the machine-specific code (machine code). That is, the image cannot be run (executed) without first being interpreted/compiled for a specific machine. The earliest example of this type of language is O-code (object code), which first appeared in 1966, and which allowed a BCPL compiler implementation to produce machine code from the O-code generated upon another machine. Other examples include the Euler language (intermediate language P), popularised in Pascal (1970), Pascal-P (1973), Pascal-S (1975) and USCD Pascal (1978). The latter was influential in the design of Java Byte Code and the Java Virtual Machine (1995). .NET (2003) and the Common Language Runtime (CLR) is another example.


What is the purpose of a byte in Java?

Java coding uses byte as one of the programming directives to clarify commands. Byte can also be used in the Java code to save memory space when the need arises.


What do you call a Program that runs Java byte code instruction?

Get the JDK & Bluej from net and the rest will be done by them. Java byte codes are stored as *.class ; where "*" represents the class name, in your hard disk. You can download BlueJ as well as JDK from the related link.


How many no of instructions does the java byte code has?

200 instructions only.

Related Questions

How do you convert text into binary in vb or c sharp code?

C# EXAMPLEString text="My sample data";System.Text.ASCIIEncoding encode=new System.Text.ASCIIEncoding();//convert to binary and store in a byte[]byte[] binaryArray=encode.GetBytes(text);


Why the byte code is verified?

when we compile a file in java, it creates a byte code which later on gets interpreted to machine understandable code. byte code is not machine language. where system understands only machine language. hence the interpretation of byte code is required.


What is the Byte code definition?

Java compiler produces an intermediate code after compilation, understandable by JVM is called Byte Code.


How do you convert image to HTML code?

In general you don't. You can convert an image into ASCII art using tools like the PNM suite, if that's what you mean; then you just need to stick <pre> </pre> tags around the converted image.


What is BYTE Code in java?

Java byte code is the code that is output by the Java compiler. Byte code is not machine code, it must be interpreted to create the machine code. This is handled by the Java virtual machine. Pretty much every platform produced today has a Java virtual machine implementation, so the same byte code can be executed upon any machine. Byte code can be regarded as being the native language of the virtual machine, as opposed to machine code which is the native language of the physical machine.


How do you convert character to decimal integer?

In Excel it is the "code" function. For example, Code("A") = 65


Bytecode is machine dependent or independent?

Because machine code only understsnd by computer in form of 0,1 and byte code not machine code and store in .class of java library it is at the 2nd stage of conversion and the machine code at the final stage and end stage so byte code under stand by any machine by the java library not convert into machine code i.e understand by machine kuldeep singh ssimt


What was the first programming language that used a virtual machine to permit portability of one compiled and linked image to run on many different incompatible computers?

Strictly speaking there has never been such a language. The compiled/linked code is actually an intermediate code known as p-code (portable code), but more commonly referred to as byte code. However, that byte code must subsequently be interpreted or compiled by a virtual machine in order to produce the machine-specific code (machine code). That is, the image cannot be run (executed) without first being interpreted/compiled for a specific machine. The earliest example of this type of language is O-code (object code), which first appeared in 1966, and which allowed a BCPL compiler implementation to produce machine code from the O-code generated upon another machine. Other examples include the Euler language (intermediate language P), popularised in Pascal (1970), Pascal-P (1973), Pascal-S (1975) and USCD Pascal (1978). The latter was influential in the design of Java Byte Code and the Java Virtual Machine (1995). .NET (2003) and the Common Language Runtime (CLR) is another example.


What is expanding opcode?

A code that leaves a spare bit to indicate that if that bit is set, consider this byte and the next byte to be defining the entire code.


What does image scanner do?

The bar code reader is special type of image scanner. Image scanners convert any printed image into electronic form by shining light onto the image and sensing the intensity of the light’s reflection at every point.


How java is fast?

Java is not fast. Compared to equivalent code compiled to native machine code it is extremely slow. However, it is somewhat faster than many other interpreted languages because the source code compiles to Java byte code which is suitable for interpretation by any Java virtual machine. Interpreting byte code is much quicker than interpreting source code and, unlike machine code, byte code is portable.


Why java's code first converted into byte code instead of directly converted into machine code?

Because that's how java works. There are many other languages (C, for example), that work with direct compilation, and others (like PHP) that are interpreted.