![]() “Object is an instance of a class”, explain.Īns: Object of a class contains data and functions provided in a class. In Java, run-time errors occur when the interpreter is running the byte code and something goes wrong. The second type of error is a run-time error, so-called because the error does not appear until you run the program. Syntax refers to the structure of your program and the rules about that structure. State the differences between Syntax errors and Logical errors.Īns: The compiler can only translate a program if the program is syntactically correct otherwise the compilation fails and you will not be able to run your program. (iv) Java does not have template classes as in C++. State the distinguishing features of Java and C++?Īns: (i) Java does not support operator overloading. The two types of Java programs/applications are?Īns: The two types of Java Applications are ‘Internet Applets’ and ‘Stand alone application’. Right click on the object icon and select the method we want to execute. A object icon will be created at the bottom. A dialogue box appears type the name of the object. Execute: Right click on the class icon and select new class name option. Compile: click the compile button on the left of the window or right click on the class icon and select compile from the menu options. double click on it, a program editor will be open, erase the code and type your program coding. How you create, compile and execute a program in Java or BlueJ? Explain your answer?Īns: Create: Click on new class button from BlueJ editor, then type the class name a program icon will be created. It is an IDE (Integrated Development Environment), which includes an editor a debugger and a viewer. Open Product.Īns: BlueJ is a Java development environment. Write the five characteristics of Java/BlueJ?Īns: 1. Actually this Java interpreter is known as Java Virtual Machine (JVM).Īns: The Java development kit comes with a collection of tools that are used for developing and running java programs.Īns: The Java APIs (Application Program Interface) consist of libraries of pre-compiled code that programmers can use in their application. Programs written in Java are compiled into Java byte-code, which is then interpreted by a special java Interpreter for a specific platform. It hides the underlying OS from Java application. ![]() Instead of interacting with the Operating System directly, Java programs runs on a virtual machine provided by Java, therefore Java is often referred to as a platform also.Īns: Bytecode is a set of pseudo mechanic language instructions that are understood by the JVM (Java Virtual Machine) and are independent of the underlying hardware.Īns: JVM or Java Virtual Machine is an abstract machine designed to be implemented on top of existing processors. ![]() Why is Java often termed as a platform?Īns: Platform is the environment in which programs execute. but these questions are must be known by students. Not mention anything about this topic “Introduction to Java BlueJ Environment”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |