04-03-25 ---------- Java application development using Eclipse ------------------------------------------------ Q)What is Eclipse? =>Eclipse is one of the widely used IDEs in the industry for Java application development. =>IDE(Integrated Development Environment) is tool(software) used to develop,test,debug,deploy and run Java applications. =>Intellij, JDeveloper, JBuilder, NetBeans are some other IDEs for Java project development. Q)What is workspace in the context of Eclipse? =>A master folder(directory) in which, Java applications developed using Eclipse are stored. =>We can create any number of workspaces. =>Every Eclipse session is associated with one workspace. Q)What is a project in the context of Eclipse? =>Any Java application that is developed using Eclipse is known as a project. =>Eclipse treats every Java application as as a project. Q)What are the main components of Eclipse Workbench? =>When Eclipse is launched(started), the first window(main window) is known as Eclipse Workbench. It consists of so many plugins. 1)package explorer 2)Editor 3)Console Q)Develop a Java project using Eclipse that prints Hello World on the console. Step 1:- create a project Step 2:- create a package Step 3:- create a Java class (with main method) Step 4:- Write required code in main method (syso Ctrl+ space bar) Step 5:- Run the application. (right click on the editor. Run As=>Java application) Some most frequently used Shortcut keys ----------------------------------------------- 1)Ctrl+s =>to save the file 2)syso+ctrl+space bar=> to get System.out.println() 3)Ctrl+d =>to delete a line 4)Ctrl+/ =>to comment and to uncomment 5)Ctrl+w =>To close a file 6)Ctrl+Shft+w=>to close all the files 7)Ctrl+space bar =>To get IDE intelligence 8)Ctrl+Shft+o =>Organize imports 9)Ctrl+Shft+f =>formatting the code 10)Ctrl+m=>minimize/maxmize