GeekInterview.com
Answered Questions

Application security

Asked By: dav4uuuu | Asked On: Jul 15th, 2010

How will you make sure to develop Java/j2ee projects/applications secured from hackers?Justify how Java projects are more secured than other languages?

Answered by: Monika Gupta on: May 7th, 2012

Java projects are more secured than other languages because after compilation of java program byte code is generated. And byte code is unreadable code. Any person cant read the byte code. then the project become more secure.

Answered by: suvojyotysaha on: Apr 22nd, 2012

J2EE application can be made secure by implementing: 1. Authentication 2. Authorization 3. Encrypt the information by making the transport guarantee as Confidential. Authentication verifies if the us...

Why is that the final variable has to be initialized as soon as it is declare?

Asked By: vishalanand_154 | Asked On: Jul 31st, 2008

Star Read Best Answer

Editorial / Best Answer

Answered by: r.praveenkumar

View all answers by r.praveenkumar

Member Since Oct-2007 | Answered On : Aug 1st, 2008

when a variable is declared as final we cant change its value again. we use final variable to declare a constant so when we declare a variable as final and if we were allowed to not to give its value at the time of declaration it would not make sense so people who designed java made mandatory to give the value when we declare a final variable. then only it will be sensible.
final PI=3.14;
then we cant change PI's value. think if the above statement do not contain a vl it would not make sense.

Answered by: Nitin Maulekhi on: Jul 18th, 2012

final keyword can be applied on:- 1.class 2.member functions(only non-static) 3.data-members(both static and non-static) 4.local variables. 1.by making a class final ,that class cannot be inherited....

Answered by: Rohit Verma on: Jul 10th, 2012

Like any variable, a final variable can also be first declared and then assigned a value. But it can be only assigned a value once and only once ( as its final variable ). for example :- final Strin...

Explain the concept of design in a project and its life cycle

Asked By: tirupathi.reddy | Asked On: Jan 20th, 2008

Answered by: amreenkhader on: Jan 20th, 2012

Projects needs to be designed carefully which must be meaningful according to the readers and learners..It must be planned in such a way so that it can be followed easily a project should contain a meaninngful data related to topic prescribed

Answered by: Ashwinshenoy7 on: May 8th, 2011

Let me start with an example.Consider a development projectInitiation : Requirements gatheringPlanning : From the scratch to the end product based of the needs and requirements provided.Design: Once t...

What is DAO?

Asked By: urs_bluevr | Asked On: Jul 6th, 2007

Answered by: amreenkhader on: Jan 20th, 2012

DAO decides to recieve the appropriate application from java and implemeting it a runtime...during execution..

Answered by: chetan.nellekeri on: Apr 18th, 2011

DAO is Data Access Object.

This is a pattern is used in most of the project throughout the industry.
This class is the main medium between JAVA and JDBC.

How to clear screen using c# console application...?Like clrscr() in c++..!

Asked By: Kannan | Asked On: Nov 22nd, 2006

Answered by: Anuj Malik on: Oct 5th, 2012

Console.Clear(); its work absolute in c# "c# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication9 { class stud...

Answered by: amreenkhader on: Jan 20th, 2012

To clear the screen we can use the clrscr() command followed by ; to clear the input given to the program

Available methods in synchronization ?

Asked By: sudhakar_bvr | Asked On: May 30th, 2006

Answered by: dhayasinfo on: Jul 16th, 2012

Synchronization is a process by using Synchronize keyword to prevent the dead lock. This can be used in methods or block to prevent two threads to access the same resource in the same time.

Answered by: amreenkhader on: Jan 20th, 2012

In this two threads cannot use the same resource simultaneously beacuse the thread execution gets interrupted or terminated hence only a single thread can share resource at a time.

What is the difference b/w Java & Javax files?

Asked By: hdhd | Asked On: May 11th, 2006

Answered by: amreenkhader on: Jan 20th, 2012

Java is the extension of C++ language and javax files are those where it stores the entire program for execution in the form of files and termed as javax files

Answered by: raam on: Jan 19th, 2012

javax is the extension for the java packages

Code
  1. javax.swing extension for java.awt

Can we declare class as protected?

Asked By: suresh | Asked On: Feb 25th, 2006

What is the scope for this class?

Star Read Best Answer

Editorial / Best Answer

Answered by: dipl. ing. Dan

View all answers by dipl. ing. Dan

Member Since Mar-2006 | Answered On : Mar 24th, 2006

Some people might get confused by the many posts. The correct answer to the question "can we declare class as protected?" is YES, BUT only as an inner class. A 'normal' class cannot be protected or private.

// 'Normal' class - only default or public allowed

public class ProtectedOrNot {

  // Inner class - public, default, protected, private allowed

  protected class InnerClass {

  }

  public static void main(String[] args) {

  }

}

Answered by: prakash on: Mar 18th, 2013

Class can be protected or private but only inner

Answered by: amreenkhader on: Jan 20th, 2012

The class cannot be declared as protected..

What is diffrence between Java and Java script?

Asked By: vijay | Asked On: Oct 21st, 2005

Answered by: amreenkhader on: Jan 20th, 2012

Java is the basic object oriented programmng language and Java script can be used in style sheets making and in HTML documentation

Answered by: mani.sivapuram on: Feb 23rd, 2011

java-script is also same as like java only.But java is used in server side scripting and the javascript is used in client side scripting. I will say a real time scenario here consider the normal user...

Why do threads block on i/o

Asked By: Interview Candidate | Asked On: Aug 28th, 2005

Threads block on i/o (that is enters the waiting state) so that other threads may executewhile the i/o operation is performed.

Star Read Best Answer
Answered by: amreenkhader on: Jan 20th, 2012

Thread gets blocked just because when two thread try to access the single resource simultaneously the threads get blocked and when one thread is using the resource other should be put to sleep state b...

Answered by: saravanakumar on: Aug 27th, 2005

Sir, 
 
i want one doubt, how to open the new window from click the java frame using handling event. please give the idea to me. i know that it's a comment page. But u have using the doubt page. thanking u.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: