

- #BLUEJ EXERCISE SOLUTIONS HOW TO#
- #BLUEJ EXERCISE SOLUTIONS SOFTWARE#
- #BLUEJ EXERCISE SOLUTIONS CODE#
It translates the source program into target program one line at a time.Īll the errors found during compilation are displayed together at once.Įrrors are displayed line by line as each line is translated and executed. It translates the whole source program into target program at once. It is a set of statements in Machine Language. It is a set of statements in a High-Level programming language.
#BLUEJ EXERCISE SOLUTIONS CODE#
(a) Source code and Object code Source code Five commonly used Java reserved words are: Reserved words are also known as keywords. Due to this, reserved words can’t be used as names for variables, methods, classes or any other identifier. In Java, a reserved word is a word that has a predefined meaning in the language. What are Java reserved words? Name any five. Three packages of Java Class Library are: Name three packages of Java Class Library. JVM is platform specific, each platform has its own JVM.
#BLUEJ EXERCISE SOLUTIONS SOFTWARE#
Java Virtual Machine (JVM) is a software that takes Bytecode as input, converts it into Machine code of the specific platform it is running on and executes it. It needs to be converted into Machine Code first. Bytecode can't be executed directly on the processor. Java compiler converts Java source code into an intermediate binary code called Bytecode. As it reads the program line by line so the errors are reported one by one. The compiler processes the complete source program at once and if there are compilation errors, they are all reported together at once.Īn interpreter is a program that reads a source program line by line, converts each line into its equivalent machine code and executes it.

James Gosling developed Java programming language. Who developed Java? What was it initially called? Answer the following questions Question 1 Question 5īlueJ is a window based platform to operate Java program.

Question 4Ī single line comment is represented by the symbol // in Java programming. The words which are preserved with the system are called keywords/reserved words, that can not be used as variable names in Java programming. It should not be confused with java.math package which contains BigDecimal, BigInteger and MathContext classes. The official documentation is provided here. In Java, the package used to find power raised to any base is java.lang.Ĭlarification: Math class inside java.lang package contains Math.pow that is used to find power raised to any base. Machine codes are expressed using alphanumeric characters.įalse Fill in the blanks with appropriate words Question 1 Java application is a Java program which is developed by users. Import 1 - Unit 2 Introduction to Java Class 9 - APC Understanding Computer Applications with BlueJ Yes: public boolean endsWith(String suffix)Įxample: String trimmedText = im() Ĭontrol characters are treated as whitespace: ".it trims all ASCII control characters as well"Īdd the line: input = input.toLowerCase() Īn instance is created by using one of the two constructors:
#BLUEJ EXERCISE SOLUTIONS HOW TO#
