package com.fuck; public class EvenOrOddWithTwoThreads { public static void main(String[] args) { SharedPrinter sp= new SharedPrint...
Java Interview Questions
1. Why do you want to change the current company? 2. What is the serialization ? why you want to use? 3. What is the super class for al...
Liferay Interview Questions
1.what is the purpose of remote-service=true 2.what is the difference between List and Set 3.what is the difference between TreeSet...
working with childs in Liferay velocity.
If there is a structure like below: Tab_text Link_to_Page2908 Link_text In this scenario we will write the template code as be...
Hibernate 4 annotation Example
1.Employee.java file: package com.vy.Employees; import javax.annotation.Generated; import javax.persistence.Column; import javax.persiste...
Custom Exception Example in Java
import java.util.Scanner; class MarriageAgeException extends Exception { public MarriageAgeException(String message) { super(message); ...
Configuring gmail in Liferay 6.2 using Control Panel
1. Sign in to Liferay Portal as admin user. 2. Configure using Control Panel > Server Administration > Mail 3. Navigate to ...
How to connect to external database from Liferay 6.2
How to connect to External DB in Liferay ? 1. Create a database with the following name: anotherdatabase 2. Create a table as shown b...
Liferay Interview Questions
1. what is a portlet and what are life-cycle methods? 2. How do you change css in theme? 3. what is the purpose of recycle-bin portl...
Value Lab java Interview Questions
Value Lab Interview Questions 1. What is the purpose of Generics? 2. What is advantage of SQL joins? 3. What is static impo...
Checked vs UnChecked Exceptions in Java
There are 2 types of Exceptions: 1. Checked Exception(checked by the compiler at the time of compilation ) a. Checked Exceptions are oc...
sum of digits of a number program in java
package core; import java.util.Scanner; public class SumOfDigits { public static void main(String[] args) { // TODO Auto-generated me...
Liferay 6.2 web-content related tables
Web-content related tables in Liferay6.2: journalarticle journalarticleimage ...
spring core example with maven
In this post, I am giving idea, how to create spring-core project with maven, Before creating maven project maven should install in your sy...