PQ01 When do you need the Java Development Kit JDK The Java


PQ01. When do you need the Java Development Kit (JDK)? The Java

Runtime Environment (JRE)?


PQ02. What types of code are generated by the Java compiler (javac),

interpreter (java), and documentation generator (javadoc)?


PQ03. Define the \"virtual\" aspect of the JVM.


PQ04. Was Java created before or after C++? C?


PQ05. What makes Java an object-oriented language?


PQ06. For each *data type* learned, write down a literal of that type.

Which are primitive types? Are any reference/class types?


PQ07. Give examples of our uppercase (named constants), camel case

(variables), and Pascal case (classes) naming conventions.


PQ08. Write an expression that use int division (/) and modulus (%).


PQ09. Force an int result in a floating-point calculation with a

*cast*. Also, using one of the Math class methods.


PQ10. Write a statement using combined assignment (e.g., /=). Then,

rewrite it using just = and /.


PQ11. How does the decrement operator (--) behave in: --points + 10?

What if the *postfix* version of -- was used?


PQ12. Use each String method we learned [length(), charAt(), equals(),

compareTo(), etc.] in a statement.


PQ13. Create a Scanner object named \"keyboard\" to read user input.

Don\'t forget to \"import\" its package.


PQ14. Use its Scanner methods to read various data types. What

happens if an invalid value is typed? Spaces? Newlines?


PQ15. Differentiate run-time errors that cause *exceptions* and

those that are simply *logic errors*.


PQ16. How can the debugger help with such errors (features/commands)?


PQ17. Convert some //line comment into a comment that uses /* */.


PQ18. Run a Java program from the Windows Command Prompt.


PQ19. Send the value of an arithmetic expression to standard output

using print(ln). Then, format that expression using various

format specifiers available with printf.


PQ20. Write down expressions containing concatenation, arithmetic,

relational (comparison), and logical operators. Then, evaluate

those expressions via parentheses, precedence, and associativity.


PQ21. How are letters stored in type *char* using Unicode?


PQ22. When does \"short-circuit evaluation\" affect expressions with

&& or ||?


PQ23. What type of expression can be used as the *condition* of an

\"if\"? A \"switch\"?


PQ24. Practice tracing code that uses multiple alternates (if-else-if).

I.e., determine which \"if\" or \"else\" part will be executed.


PQ25. Under what circumstances must you use braces { } to form a

\"block\" (compound statement)?


PQ26. Write a loop to count up to 10. Then, down from 10. Then,

by 2\'s.

Solution

PQ1- JRE: Java Runtime Environment. It is basically the Java Virtual Machine where your Java programs run on. It also includes browser plugins for Applet executionin order to provide support.

JDK: It\'s a Development Kit for Java, including JRE, and the compilers and tools ( to create and compile programs.

when you only care about running Java programs on your browser or computer or any devices you will only install JRE. . And,if you want to do Java programming, you will also need JDK to developed java programs.

PQ3-JVM stands for Java Virtual Machine. JVM is an java computing machine, or virtual machine. It is a platform-independent execution environment that converts Java bytecode into machine language and executes it. Most programming languages compile source code directly into machine code that is designed to run on a specific defined operating system, such as Windows or UNIX or mac os.

PQ4-Java is delvoped by James Gosling and after c and c++ --

C

C++

Java

Developed Year

1972

1979

1991

Developed By

Dennis Ritchie

Bjarne Stroustrup

James Gosling

PQ5- As java support all of the following freatures that is the reason is is termed as object oriented-

•             Polymorphism- Polymorphism is the ability of an object to take on many forms. The use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

•             Inheritance- Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object.

•             Encapsulation- Encapsulation in Java is a mechanism of wrapping the data (variables) and code acting on the data (methods) together as a single unit.

•             Abstraction- Abstraction is used to hide certain details and only show the essential features of the object.

•             Classes-Templates or logical written representation of data members and member functions

•             Objects-These are the physical existence of logical remplates

FOR OTHER PARTS PLEASE PASTE AS SEPRATE QUESTION .THANKYOU

C

C++

Java

Developed Year

1972

1979

1991

Developed By

Dennis Ritchie

Bjarne Stroustrup

James Gosling

 PQ01. When do you need the Java Development Kit (JDK)? The Java Runtime Environment (JRE)? PQ02. What types of code are generated by the Java compiler (javac),
 PQ01. When do you need the Java Development Kit (JDK)? The Java Runtime Environment (JRE)? PQ02. What types of code are generated by the Java compiler (javac),
 PQ01. When do you need the Java Development Kit (JDK)? The Java Runtime Environment (JRE)? PQ02. What types of code are generated by the Java compiler (javac),
 PQ01. When do you need the Java Development Kit (JDK)? The Java Runtime Environment (JRE)? PQ02. What types of code are generated by the Java compiler (javac),

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site