Question

How can you identify which file is the java source code? What can you do with...

How can you identify which file is the java source code?

What can you do with java byte code?

What can you do with java source code?

Be able to know the difference between a statement, an expression and a literal.

What is the value of a literal (as in, what is the literal that represents the int zero)?

What is the value of a literal (as in, what is the literal that represents the capital letter A)?

What is the purpose of a comment?

What is the difference between a block comment and a line comment?

Where does a line comment go in a line?

What are the rules to name an identifier?

What is an identifier?

What are primitive data types?

What is the difference between how int/double/char/and String are stored (how many bytes each)?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1)

The java file can be identified by using ( .java ) extension. The file name along with .java is used to save a java source file .

For example : file.java is the way to represent and identify java file containing source code.

2)

When a user compile a Java source code then it converts to byte code which is a machine understandable code. So it is said to be machine level language.

Java is platform independent because of byte code. It is not a runnable code , with the help of interpreter JVM( java virtual machine), the byte code gets executed. So java acts like write once and read anywhere because of portability. Java virtual machine is dependent on instructions of java bytecode.

Source java file Code Compiler bytecode loclass file JVM Machine code

3)

The java source code is written by a Java developer or professional java programmer for getting desired output with given inputs. On successful execution with efficient output which the code can be further used in real time applications to help the society.

Add a comment
Know the answer?
Add Answer to:
How can you identify which file is the java source code? What can you do with...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Java Eclipse program Write statements to declare and initialize eight constants, one for each of the...

    Java Eclipse program Write statements to declare and initialize eight constants, one for each of the primitive types in Java. boolean, byte, char, short, int, long, float and double. Add statements to print the name of the constant and its value to your VariableDefinitions.javaprogram and compile the program. Assign a new value to one of the constants and compile. Comment out the lines of code that cause compilation errors but do not delete them and recompile your program.

  • would someone please kind enough to help me out on my intro to java study guide...

    would someone please kind enough to help me out on my intro to java study guide by helping me with some useful tips/ examples or anything on these questions. My grade is on the line and would really appreciate your help! Final exam study guide 13. truncating vs rounding - Where do you encounter truncation? Where do you encounter rounding? 14. Can you identify the following items in a Java source code example (using just syntax, usage, and naming convention)?...

  • Write the Java code for the class WordCruncher. Include the following members:

    **IN JAVAAssignment 10.1 [95 points]The WordCruncher classWrite the Java code for the class WordCruncher. Include the following members:A default constructor that sets the instance variable 'word' to the string "default".A parameterized constructor that accepts one String object as a parameter and stores it in the instance variable. The String must consist only of letters: no whitespace, digits, or punctuation. If the String parameter does not consist only of letters, set the instance variable to "default" instead. (This restriction will make...

  • Please read this comment: This is the only file given by my professor and so can...

    Please read this comment: This is the only file given by my professor and so can you please help me to write a python program. You can use any test file and post the output with the code. The output might be different then above but please help me to get started with the PYTHON code. Thank you in advance You are going to write a Python program that represents a command line version of a hexadecimal editor. This program...

  • Write a simple Java program with the following naming structure: Open Eclipse Create a workspace called...

    Write a simple Java program with the following naming structure: Open Eclipse Create a workspace called hw1 Create a project called hw1 (make sure you select the “Use project folder as root for sources and class files”) Create a class called Hw1 in the hw1 package (make sure you check the box that auto creates the main method). Add a comment to the main that includes your name Write code that demonstrates the use of each of the following basic...

  • write the following code in java thank you and if you can, could you please write...

    write the following code in java thank you and if you can, could you please write the code in replit and sent me a link to it replit is basically like a online compiler and you can write java code on it thank you The first part is to implement one of the questions from your examination. /* A Range objects represents an integer range, such as 1-10 or 50701-50799. The lower and upper bounds of a Range are given...

  • Program Description: A Java program is to be created to produce Morse code. The Morse code...

    Program Description: A Java program is to be created to produce Morse code. The Morse code assigns a series of dots and dashes to each letter of the alphabet, each digit, and a few special characters (such as period, comma, colon, and semicolon). In sound-oriented systems, the dot represents a short sound and the dash represents a long sound. Separation between words is indicated by a space, or, quite simply, the absence of a dot or dash. In a sound-oriented...

  • Can someone provide detailed comments on what this code is doing for each line? I posted...

    Can someone provide detailed comments on what this code is doing for each line? I posted the assignment below. I am having trouble learning and getting assistance because I keep getting answers provided w/ good information on how the problem was solved. I have spent too much on tutoring this month and I am relying heavily on assistance here. Can you please assist with helping me understand each line of code that was written here? Also- is there an easier...

  • Array manipulation (a) Write Java code for a method exchange (int [] a, int i, int...

    Array manipulation (a) Write Java code for a method exchange (int [] a, int i, int j) that exchanges the values stored at indices i and j in the array a. You do not need to worry about cases where either i or j is an invalid index. Give the best estimate you can for its time complexity (b) In an ordered array of n items, how can we determine whether or not an item belongs to the list using...

  • Can someone please explain this piece of java code line by line as to what they...

    Can someone please explain this piece of java code line by line as to what they are doing and the purpose of each line (you can put it in the code comments). Code: import java.util.*; public class Array { private Integer[] array; // NOTE: Integer is an Object. Array() {     super();     array = new Integer[0]; } Array(Array other) {     super();     array = other.array.clone(); // NOTE: All arrays can be cloned. } void add(int value) {    ...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT