This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java static keyword application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Java static keyword application" Watch "Java static keyword application" New topic
Author

Java static keyword application

ravi
Greenhorn

Joined: Apr 11, 2005
Posts: 2
Hello,

I am Ravi. I came across a application of the static keyword but i could not write a program to see how it works. It is "a return statement without any parameters can be given in a static initialization block". Anybody please help me?

Thank You,
cosmicravi
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


a return statement without any parameters can be given in a static initialization block

Where did you see this? ONe way to find out is to try it:

See if you can compile that and you'll have your answer.
[ April 11, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

Hi Ravi,

Welcome to JavaRanch!

Hi,

Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" and joke names aren't OK here. You can change your display name here. Thanks!

Second, please don't post your questions in more than one forum. It just wastes people's time if they give a detailed answer in one copy of your thread if someone's already answered another copy.

Third, be sure to post your questions in the right forum. This one has nothing to do with servlets, so normally I would delete it since there's a duplicate in Java in General (Intermediate.) Since it's been answered, I'll delete that other copy, then move this thread there.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java static keyword application
 
Similar Threads
Static block
static enum vs enum
difference between static local variables and static global variables.
static finalization
static variable