Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Solved Assignments
Asked Questions
Answered Questions
compare classes with c some significant points to consider when defining a class in java as you probably noticed from above given skeleton are-
determine the types of object oriented programme classes- prototypes for objects- definition or a blueprint of a user-defined datatype- think of it
object oriented programming java is basically object oriented each line of code you write in java should be inside a class not counting import
illustrate the method to print on the guiexample code taking input outputso far we learned how to print something on console now time has come to
converting strings to numeric primitive data typesto convert a string which is containing digits to a primitive data type wrapper classes can help
what is the use of wrapper classyou can create an object of wrapper class using a string or a primitive data type integer num new integer 4 or
differentiate between primitives and objects everything in java is an object as every class by default inherits from class object except a few
determine how many arguments were passed using length propertyin java array knows their size by using the length property by using length property we
taking in command line argumentsin java the program can be written to accept command-line-argumentsexample code command-line arguments
explain the term- comparing stringsfor comparing strings never use operator use equals method of string class- operator compares addresses shallow
what is the string concatenation operator is employed to concatenate strings- systemoutpritln hello world will print hello world on consolestring
explain the term- stringsa string is generally considered to be a sequence of characters stored in memory and accessible as a unitstrings in java are
explain the execute phase of java program development finally in phase computer under the control of its cpu interprets program one bytecode at a
state the verify phase of java program development before the bytecodes in an application are executed by the java interpreter they are verified by
determine the phase loading- java program development in phase 3 the program must first be placed in memory before it can be executed this is done by
explain the phase compile- java program development in phase 2 programmer gives the command javac to compile the program java compiler translates the
describe the edit phase- java program development phase comprises editing a file this is done with an editor program programmer types a java program
execution process of java bytecodejvm are available for almost every operating systemjava bytecode is executed by employing any operating systems jvm
java virtual machine amp runtime environmentbasic conceptwhen you write a program in c its called source code c compiler converts this source code
java is for realjava has a lot of hype however much of it is deserved java is very well matched for many modern problemsusing more cpu time and
relate in brief - microsoft vs javamicrosoft hates java as a java program portable isnt tied to any particular operating system if java is popular
java is object oriented programme language java is comprehensively oop language with robust memory systemmemory errors largely disappear due to safe
state the java programmer efficiencyfaster developmentbuilding an application in java takes about 50 less time than in c or c so faster time to
determine the java compiler structuresource code for every class is in a java file compile every class to produce -class filesometimes multiple class
dynamic javaclass and type information is kept around at runtimethis allows runtime loading and inspection of code in a very flexible