If we use one machine for jenkins then the moment we run multiple jobs it may burden the machine/vm which can lead to system crash To reduce burden on jenkins server/vm we can go with master - Slave configuration which could be used to reduce the burden on jenkins server/vm by distributing tasks/load. Jenkins Master vs Jenkins Slave The machine/server where jenkins tools is installed can be referred as master machine which is used to create jobs, schedule the jobs and mange the jobs It will also distribute jobs executions into slave machines/servers Note : We can Run/execute jobs on jenkins Master machine too however it's not recommended Jenkins Slave: It's a machine which is connected to jenkins master machine and execute the job/task assigned by master machine/server. Slave server/machine will receive tasks from master machine for the job execution.
java.util.Date => It is a utility class to handles Date in our java program. => It represents both Date and Time java.sql.Date => It is designed class to handle Dates w.r.t DB operations => It represents only Date,but not Time. Note: In sql package Time(C) represents only => Time value TimeStamp(C) represents both => Date and Time value. Date and Time API: (Joda-Time API) Until Java 1.7 version the classes present in Java.util package to handle Date and Time (like Date, Calendar, TimeZone etc) are not up to the mark with respect to convenience and performance. To overcome this problem in the 1.8 version oracle people introduced Joda-Time API. This API developed by joda.org and available in Java in the form of "java.time" package. # program for to display System Date and time. import Java.time.*; public class DateTime { public static void main(String[] args) { LocalDate date = LocalDate.now(); System.out.println(date); LocalTime t...
Usually comments added in the code will be removed during the compilation process. It will not reach till the runtime. It can also called as meta data(data about data). To overcome this we have one approach called XML which is not user friendly. So that's why we are going for Annotations. Annotations are case sensitive. => It is present inside the java.lang.annotation.Annotation and by default Annotation is the parent for all the annotations. We can use annotations every where inside code like methods, variables, parameters, constructors, interfaces etc.. => Annotations means information about code. => Annotations are of 2 types. i) Inbuilt ii) Custom =>Annotations works based on the mechanism of interface.
Comments
Post a Comment