We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
Assignment on Workshop 1
CCE-121
#To write java program in command prompt. If java is
installed then show many files in command prompt. Otherwise shows internal or external base file not found. #To write (mkdir name) to create folder in the user file. #To copy URL of (bin) folder and go to environment then create a new path. #To execute java program in different drive like operating system select the path.
# Difference between IDEs and Code Editors
Text editors with sophisticated built-in capabilities and specific functionalities designed to ease and speed up the process of editing code are referred to as code editors. An IDE is a collection of software development tools that are intended to simplify the process of coding.
# Class contains in a java program-
1.Variable 2.Method 3.Consturctor 4.Instance Block 5.Static Block # Use of javac -To compile the program or java file # Use of java -To run the program or java file. # javac performs 2 actions-- o Check syntax error. o (.) java convert to (.) class. # java performs 2 actions-- o Search (.) class file and load it to memory. o Search main method.
# Compiler start executing from main class.
# It is not recommended that class name and file name must be same. # If class is declared in public then the class name and file name must be same. #There must be one public class in source file.
#There are three kinds of comments in java.
#There are three kinds of variable in java-- o Instance Variable. o Static Variable. o Local Variable. # Local variable allocates stack memory. # Local variable works in full method. # Instance variable works in full area. # Static variable declared within the class. # If instance variable or instance method call from instance method call from instance area it will call directly. # If instance variable is called from static area then create an object for calling instance variable. # There are two ways to create object. o Named object. o Nameless object. #There are two ways to allocate project memory. o Instance memory allocate when object create. o Static memory allocates when class load.