Start Discovering Solved Questions and Your Course Assignments
TextBooks Included
Active Tutors
Asked Questions
Answered Questions
oops with java1explain any five buzz words in java2explain exception classes and also explain common exceptions in java3explain primitive and
java programming1what do you understand by java virtual machine2write a simple java program to display a string message and explain the steps of
java programming1discuss any five buzz words in java2describe exception classes and also explain common exceptions in java3describe primitive and
java programming1write a program in java to find the highest of any five numbers how do you compile and execute this java program2write a program to
i neeed to create a basic code to do the following the class is entry level and i would appreciate a brief explanation as to why you do each bit
prompt the user for an int between an upper and lower boundary reuse the validateinput method from project 2 to validate if the input is in bounds if
give an example of code using static and finalizeexample code using static amp finalize we want to count exact number of objects in memory of a
determine the meaning of finalize when a finalize method is defined in a class java run time calls
explain the term - garbage collectionjava performs garbage collection and eliminates the need to free
illustrate an example of static variablessystemoutprintlnsome text -- out is a static variablejoptionpaneshowmessagedialognull some text --
explain about the static classesa class can have static variables and methods
create objects of student class by calling defaultcreate objects of student class by calling default parameterize and copy constructor call student
write a program of student using a classobjects of a class are always created on heap using new operator followed by constructor student s new
task - defining a student classthe below illustration will explain how to write a class we want to write a student class which- should be able to
write a program using local variable public void somemethod int x local variablesystemoutprintlnx compile time error- constructor- doesnt have a
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