How do we know which operators to use in java

Assignment Help JAVA Programming
Reference no: EM131745495

Answer questions

1). Primitive variable types are the most basic data types available within the Java language. There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation in Java. Such types serve only one purpose which is containing pure and simple values of a kind.

How often do we use primitive variables when we are creating a code in a program?

Do we use them all the time or very seldom?

Any thoughts?

2). An operator, in Java, is a special symbols performing specific operations on one, two or three operands and then returning a result. The operators are classified and listed according to precedence order. Java operators are generally used to manipulate primitive data types. The Java operators are classified into eight different categories: assignment, arithmetic, relational, logical, bitwise, compound assignment, conditional and type comparison operators.

How do we know which operators to use in Java and when to use them?

Any thoughts?

3). The lifetime of a variable or object is the time period in which the variable or object has valid memory. Lifetime is also called "allocation method" or "storage duration."

So if an object does not have valid memory then it has a lifetime that is very short and nothing is stored or remembered.
The lifetime also depends on how much needs to be stored at that particular time.

Any thoughts?

4). Java is portable via the Java Virtual Machine that adapts to whatever environment in which it is implemented. Java encourages component re-useability through its capability of "Inheritance", which is a form of software reuse in which a new class is created by absorbing an existing class's members and embellishing them with new or modified capabilities.

With inheritance, you can save time during program development by basing new classes on existing proven and debugged high-quality software. This also increases the likelihood that a system will be implemented and maintained effectively.

Any thoughts?

5). what is a virtual machine and how does it differ from a "real" machine.

And ... what is a "machine" that we are talking about in this class?

Reference no: EM131745495

Questions Cloud

How does social anxiety and social loafing relate to virtual : How does social anxiety and social loafing relate to virtual groups. Do virtual groups make these problems more difficult or less difficult to address
Find the equation of the least-squares regression line : Popularity of a first name. The Social Security Administration maintains lists of the top 1000 names for boys and girls born each year since 1879.30
Are opportunities for development growing or diminishing : Are opportunities for development growing or diminishing? Does the Internet provide opportunities for development with limited trade-offs?
Determine the rejection region and state your conclusion : STA 403/503 Homework. Use the general linear test to test the hypothesis in part (a). Compute the value of the test statistic, determine the rejection region
How do we know which operators to use in java : How often do we use primitive variables when we are creating a code in a program? Do we use them all the time or very seldom?
Discuss what are the elements of romanticism : what are the elements of romanticism in this passage and how does it develop the plot
Does the case appear to work for or against your client : Fozze Bear, stands convicted for the heinous murder of Miss Piggy. Does the case appear to work for or against your client?
What role does art making or art viewing have in your life : What was the very first artwork you remember doing? How did you feel about it when you made it? What role does art making or art viewing have in your life?
Marketing strategy involves segmenting-targeting-positioning : The first step in developing a marketing strategy involves segmenting, targeting and positioning (STP).

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java program to handle applications

Write a Java program to handle applications for universities admission providing a much better user interface than in the program discussed in the lecture

  Create a for loop that compares the two strings

Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore.

  Uses a loop to populate a one-dimensional array

Write the following program that creates and uses a loop to populate a one-dimensional array that holds the even numbers between 1 and 12; creates and uses a loop to populate a second one-dimensional array that holds the odd numbers between 1 and 12;..

  Write a program that creates an enumeration representing

Sherri rolls a 3 and decides to continue. She then chooses to roll two more times (6, 1). Because she rolled a 1, Sherri's turn ends and she earns 0 points.

  Feature of object-oriented programming

Use the Internet or Strayer databases to research the advantages, features, and common examples of OOP and EDP. Describe at least one (1) feature of object-oriented programming that Visual Logic lacks

  Rectangular and cylindrical coordinates

Write a program to convert between rectangular and cylindrical coordinates, based upon user input.

  Compute the frequency for every unique character

Given the input text we will compute the frequency for every unique character (the frequency is the number of occurrences of that character in the text).

  Develop a cinema ticket booking application in java

Develop a Cinema Ticket Booking Application in Java with the following functionality, available from the console: Requests the Customer's name, age and asks if they are a student

  Describe creating java programs to calculate the squares

Using a while loop, write the square of all integer numbers from 0 to 10 make the program calculate the squares

  Write a test program that prompts the user

Write a test program that prompts the user to enter two complex numbers and displays the result of their addition, subtraction, multiplication

  Method called wordlengths that accepts a scanner

Write a method called wordLengths that accepts a Scanner representing an input file as its argument. Your method should read from the given file.

  Learn how expressions can be evaluated at run-time

Write a Java program (a collection of Java classes) including a class named ExpressionCalculator that contains a static main method. This main method will prompt the user to enter a constant expression.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd