Installing teamcity 10.0.4 on ubuntu server

Installing teamcity 10.0.4 on Ubuntu 14.04 Tema is powerful continuous integration out of the box. It is our build engineer.  It is capable of handling any kind of build without pain. we need java installed on our server before installing teamcity. Please follow this article to install java. Click here. To install team of ubuntu machine please follow following steps. Step 1: Download teamcity in…

Installing java 8 on Ubuntu server

Installing java 8 on Ubuntu server Installing java8 on ubuntu server is super easy. Just follow these commands to install it. sudo add-apt-repository ppa:webupd8team/java sudo apt update; Install java. sudo apt install oracle-java8-installer After installing check your installation using following commands. javac -version create Env variables sudo apt install oracle-java8-set-default Let me know in comments if any issues.

mark and sweep alog

Mark-and-Sweep algorithm – Garbage Collection

We often talk about Garbage Collector in Java. Garbage Collector work based on Mark and sweep algorithm. What is Automatic Garbage Collection? And how it works ? Interview questions on garbage collector java, very important questions on garbage collector, garbage collection in java, interview questions on garbage collector.mark and sweep algorithm. Garbage collection is process of looking at heap memory, identify unused memory and clean…

final, finally and finalize() in JAVA

All the three keywords final, finally and finalize() plays a very important role in JAVA. Final is a keyword used for declaration of variable which cannot be edited, finally is a segment of code used for code cleanup in case of an exception whereas finalize is a method used for object cleanup before garbage collection. Use of final, finally and finalize Final:- It is used…

Check if two trees are Isomorphic to each other ? java code

If we have two trees then to find out if these are isomorphic to each other or not? This question is asked in many company written exams many times. To understand this problem we have to first understand what isIsomorphic. Two trees are called Isomorphic only and only if both trees are mirror image of each other from every node. So i wrote a function…

What is TLS/SSL and difference between TLS/SSL

In simple terms TLS/SSL protocol provides security over internet connections while authenticating password or sending any other secure data.we see some web address have https:// that means secure http. it uses TLS/SSL. Client and server communicate with TTS/SSL Protocols securely. Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are cryptographic protocols that provide communication security over the Internet. TLS and SSL encrypt…

JavaMail– Sending Email Via Gmail SMTP Example

To send email from gmail from java code,i wrote this sample program. This will help you use gmail in your automation task. Sending email from gmail smtp server is almost same as normal smtp server. still it is sometimes it takes more time then general server as it need some extra authentication. Here is the example to send automated mail from JAVA code via gmail.…

Site Maps

A site map (or sitemap) is a list of pages of a web site accessible to crawlers or users. It can be either a document in any form used as a planning tool for Web design, or a Web page that lists the pages on a Web site, typically organized in hierarchical fashion. There are two popular versions of a site map. An XML Sitemap…

Java ClassLoaders

Java ClassLoaders are very important. There are differnt lava class loaders. hot depolyment-uprading sofware without deploying running applicaiton,exploited in EJB servers and servlet containers Class files-binary representation of Java classafter loading byte code ClassLoader makes an instance of java.lang.class which makes class available to JVM Lazy Loading-first the class file executed gets loaded and then other refrenced class, plays a key role in providing dynamic…